Filesys::Ext2Filesys::Ext2 is a Perl interface to ext2 and ext3 filesystem attributes. | |
Download |
Filesys::Ext2 Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jerrad Pierce
- Publisher web site:
- http://search.cpan.org/~jpierce/Text-FIGlet-1.06/FIGlet.pm
Filesys::Ext2 Tags
Filesys::Ext2 Description
Filesys::Ext2 is a Perl interface to ext2 and ext3 filesystem attributes. Filesys::Ext2 is a Perl interface to ext2 and ext3 filesystem attributes.SYNOPSIS use Filesys::Ext2 qw(:all); eval { $mode = lsattr("/etc/passwd"); } eval { chattr("+aud", "/etc/passwd"); } #or equivalently #chattr($mode|0x0062, "/etc/passwd");You may specify the path of the e2fsprogs upon use use Filesys::Ext2 {PATH=>'/path/to/binaries'};Otherwise the module will use the default path /usr/bin/chattr($mask, @files)Change the mode of @files to match $mask. $mask may be a bitmask or symbolic mode eg; =DIE +cad -s-iThrows an exception upon failure.lsattr(@files)Returns bitmasks respresenting the attributes of @files.Throws an exception upon failure.lstat($file)Same as CORE::lstat, but appends the numerical attribute bitmask.stat($file)Same as CORE::stat, but appends the numerical attribute bitmask.calcSymMask($mask)Accepts a bitmask and returns the symbolic mode. In list context it returns a symbol list like lsattr, in scalar context it returns a string that matches the - region of lsattr(1) eg; s-----A------Requirements:· Perl Requirements: · Perl
Filesys::Ext2 Related Software