While most things work, I do still have a TODO list:
* need to sort out cleaner mount semantics for the test framework
-* determine why getattr() test on OS X/Darwin is very slow; succeeds, but
- very slowly
+* Do getattr() test in a way that doesn't depend on sparse files, as HFS+
+ doesn't support sparse files, thus causing getattr test to take a very
+ long time.
Currently tests have been attempted and succeeded on:
* Ubuntu 10.10/amd64
use Test::More tests => 3;
sub is_mounted {
- my $diag = -e '/proc/mounts' ? `cat /proc/mounts` : `mount`;
+ my $diag = -e '/proc/mounts' ? `cat /proc/mounts` : ($^O eq 'linux' ? `/bin/mount` : `/sbin/mount`);
return $diag =~ m{ (?:/private)?$_point };
}