Sys::Filesystem::Unix - Return generic Unix filesystem information to Sys::Filesystem
See Sys::Filesystem.
Sys::Filesystem::Unix ISA UNIVERSAL
Return the version of the (sub)module.
This method provides the capability to parse a standard unix fstab file.
It expects following arguments:
Full qualified path to the fstab file to read.
The column names for the fstab file through an array reference.
Hash reference containing the names of all special file systems having a true value as key.
This method return true in case the specified file could be opened for reading, false otherwise.
This method provides the capability to read abd parse a standard unix mount-tab file. The file is locked using flock after opening it.
Full qualified path to the mnttab file to read.
The column names for the mnttab file through an array reference.
This method return true in case the specified file could be opened for reading and locked, false otherwise.
This method is called to parse the information got from mount system command. It expects following arguments:
mount
Regular expression to extract the information from each mount line.
Array reference containing the index for primary keys of interest in match in following order: device, mount_point, type.
Array reference of the columns of the match - in order of paranteses in regular expression.
Array reference containing the names of the special file system types.
Array containing the lines to parse.
This method is called to parse the information from the swap status. It expects following arguments:
Regular expression to extract the information from each swap status line. This regular expression should have exact one pair of parantheses to identify the swap device.
Nicola Worthington <nicolaw@cpan.org> - http://perlgirl.org.uk
Jens Rehsack <rehsack@cpan.org> - http://www.rehsack.de/
Copyright 2004,2005,2006 Nicola Worthington.
Copyright 2008-2020 Jens Rehsack.
This software is licensed under The Apache Software License, Version 2.0.
http://www.apache.org/licenses/LICENSE-2.0
To install Sys::Filesystem, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Filesystem
CPAN shell
perl -MCPAN -e shell install Sys::Filesystem
For more information on module installation, please visit the detailed CPAN module installation guide.