This has been useful to me for working with mounts and detecting filesystem stuff.
The API is a little convoluted. But I am glad this module at least is here. Very useful.
1 out of 1 found this review helpful. Was this review helpful to you? Yes No
1. There are no example files.
It would be very useful to have an example/ subdirectory with files that use Sys::Filesystem to mimic 'mount' and 'df'
2. There is no support (yet) for HP-UX
Yes, it's on the TODO list, but as this is my major working environment, it is missing.
3. The documentation is wrong on more than one level
# Method 3 (nice but naughty)
my @filesystems = Sys::Filesystem->filesystems ();
Can't use string ("Sys::Filesystem") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.7/Sys/Filesystem.pm line 118.
and the obvious change to
my @filesystems = Sys::Filesystem::filesystems ();
Odd number of elements passed when even number was expected at fsinfo.pl line 8
This module has potential value, but is not really useful in this version.
9 out of 10 found this review helpful. Was this review helpful to you? Yes No
The documentation is wrong: it gives an error when you give the "regular" option to the filesystems() method.
The options are disjunctive instead of conjunctive: I want a list of mounted (and) regular filesystems, but I get a list of filesystems that are either mounted or regular. Once I have a list of filesystems, there's no way to query each object in the list to see if it's mounted or regular.
So it's of limited usage.
3 out of 3 found this review helpful. Was this review helpful to you? Yes No