From: James R. <jr...@re...> - 2012-02-09 03:18:18
|
Hi all, I'm trying to test my filesystem for conformance to POSIX standards, however I'm encountering some issues when doing so. Here is an example report of running the mkdir/05.t test against the filesystem: ok 1 ok 2 ok 3 not ok 4 - -u 65534 -g 65534 mkdir fstest_2d073a008fe0cefa4b6b60fa0a939995/fstest_bbefd481ec972e7d9e1ee36e7b804ff7 0755 not ok 5 - -u 65534 -g 65534 rmdir fstest_2d073a008fe0cefa4b6b60fa0a939995/fstest_bbefd481ec972e7d9e1ee36e7b804ff7 ok 6 ok 7 ok 8 not ok 9 - -u 65534 -g 65534 mkdir fstest_2d073a008fe0cefa4b6b60fa0a939995/fstest_bbefd481ec972e7d9e1ee36e7b804ff7 0755 not ok 10 - -u 65534 -g 65534 rmdir fstest_2d073a008fe0cefa4b6b60fa0a939995/fstest_bbefd481ec972e7d9e1ee36e7b804ff7 ok 11 ok 12 Failed 4/12 subtests Test Summary Report ------------------- /home/james/Projects/AppTools/appfs/../fstest/tests/mkdir/05.t (Wstat: 0 Tests: 12 Failed: 4) Failed tests: 4-5, 9-10 Files=1, Tests=12, 8 wallclock secs ( 0.12 usr 0.06 sys + 0.54 cusr 1.56 csys = 2.28 CPU) Result: FAIL Note that it fails only the tests that change the UID / GID (this test is being run as root and the filesystem is mounted as root). I am supplying the filesystem with no mount options (so neither default_permissions nor allow_other) however the mkdir and rmdir requests never hit my user code. Is there something I'm not understanding about FUSE that's going to prevent this from working correctly (is it even possible to fully test a FUSE filesystem for POSIX compliance given the security requirements)? Regards, James Rhodes. Redpoint Software http://about.me/james.rhodes |