Subject: | Special filesystems still being shown even if regular => undef |
Test code:
my $fs = Sys::Filesystem->new();
my @filesystems = $fs->filesystems(mounted => 1, regular => undef);
for my $filesystem (@filesystems) {
printf("%s is a %s filesystem mounted on %s\n",
$fs->mount_point($filesystem),
$fs->format($filesystem),
$fs->device($filesystem)
);
}
Returns:
/ is a ext3 filesystem mounted on /dev/disk/by-uuid/xxxx-xxxx-xxxx
/dev is a tmpfs filesystem mounted on udev
/dev/pts is a devpts filesystem mounted on none
/dev/shm is a tmpfs filesystem mounted on none
/home/reed/.gvfs is a fuse.gvfs-fuse-daemon filesystem mounted on
gvfs-fuse-daemon
/lib/init/rw is a tmpfs filesystem mounted on none
/media/sda1 is a fuseblk filesystem mounted on /dev/sda1
/media/sda2 is a fuseblk filesystem mounted on /dev/sda2
Why are filesystems such as "devpts", "tmpfs", etc. still being shown
when I explicitly requested only regular filesystems?
Sys::Filesystem 1.27 under perl v5.10.0 on Ubuntu 9.10.