GithubHelp home page GithubHelp logo

Comments (8)

kartoch avatar kartoch commented on September 6, 2024

@bingel74 Could you comment about how to reproduce it (commands, labs, etc.) and information about the host OS ?

from netkit-ng-core.

bingel74 avatar bingel74 commented on September 6, 2024

OS: Ubuntu Desktop 12.04 (updated)

After downloading and installing netkit-ng I executed check script "check_configuration.sh". All cecks passed except following:

###########################################################

Checking filesystem type... failed!

*** Warning: You appear to be running Netkit on a filesystem ()
that does not support sparse files. This may result in dramatic performance
loss and disk space consumption. It is strongly advised to run Netkit
on a filesystem that supports sparse files (e.g., extX, NTFS, ReiserFS do;
FAT32 does not).

###########################################################

However my file system obviously supports sparse files because it is ext4.

from netkit-ng-core.

bingel74 avatar bingel74 commented on September 6, 2024

However I found the bug. It is in script "netkit-ng/check_configuration.d/08-check_filesystem.sh". I have seen the command that check file system type is the following:

stat -f . | grep -w Type

Since my bash output is in localized language, voilà the error.

Using this command to run check script:

LANG=C ./check_configuration.sh

bash returns no errors.

from netkit-ng-core.

bingel74 avatar bingel74 commented on September 6, 2024

Maybe I'm wrong, however I think this is a weak way to check if user uses a file system that supports sparse files because labs could be created on others partitions and not perforce in same partition where netkit is installed.

from netkit-ng-core.

kartoch avatar kartoch commented on September 6, 2024

There is two problems:

  • Localization problems: a simple idea would be to force export LANG=C at the start of each script.
  • Weak check to test support for sparse fs: no idea for a better solution at the present time

from netkit-ng-core.

kartoch avatar kartoch commented on September 6, 2024

Fix proposal pushed in bfb5344 to force english language for called commands.

from netkit-ng-core.

kartoch avatar kartoch commented on September 6, 2024

Fix proposal pushed in 77296af for checking filesystem support for sparse file for model fs or fs.

from netkit-ng-core.

kartoch avatar kartoch commented on September 6, 2024

Fixes released in version 3.0.4.

from netkit-ng-core.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.