FreeBSD::FileSystem - Class representing a filesystem in a FreeBSD host
version 0.107
my @fsystems = FreeBSD::FsStat::get_filesystems; for my $fs ( @fsystems ) { say $fs->mountpoint.' '.$fs->pct_avail }
This class encapsulates a FreeBSD filesystem information.
Returns string representation of the type of this filesystem
Returns the device corresponding to this filesystem.
Returns the directory where this filesystem is mounted.
Returns the block size for this filesystem. Statfs(2) refers to this as the 'filesystem fragment size'.
Optimal transfer block size for this filesystem.
Returns the number of total data blocks in filesystem.
Returns the number of free blocks in filesystem.
Returns the number of free blocks avail to non-superuser.
Returns the number of total file nodes in filesystem.
Returns the size of this filesystem in bytes.
Returns the number of free bytes in this filesystem.
Returns the number of bytes in this filesystem which are available to a non-superuser.
Percentage of filesystem size that is free.
Percentage of filesystem size that is available
To install FreeBSD::FsStat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FreeBSD::FsStat
CPAN shell
perl -MCPAN -e shell install FreeBSD::FsStat
For more information on module installation, please visit the detailed CPAN module installation guide.