Linux::MountPoints -- List all mountpints
Version 0.01
use Linux::MountPoint; print_out(Linux::MountPoint->root(),''); sub print_out { my $point=shift; my $in=shift // ''; print $in.'Mountpoint: '.$point->mount_point()."\n"; print $in.'FS Type : '.$point->fstype()."\n"; print $in.'Source : '.$point->source()."\n"; print $in."--------\n"; print_out($_,$in.' ') for(sort{$a->mount_point() cmp $b->mount_point()}$point->childs()); }
Information about the MountPoints
ToPeG
predefined: /proc/<PID>/mountinfo
returns a list of MountPoint-Objects on error it retuns aln empty list.
returns a list of the mount Options
returns a list of the super Options
returns a hash of the optional Fields Options of the Kernelmodul
returns the mountpoint
returns the Filesystem Type
returns the Device. If it's a vitual Filesystems it's the name of the kernelmodule.
returns an unique ID
returns the ID of the parent MountPoint
returns the Kernel minor ID
returns the Kernel major ID
returns true if the filesystem is virtual
returns true if the Mpuntpoint is moutet with the "bind" option
returns true if the Mountpoint have a parent
returns the real source of the Mountpoint. If it's mounted with "bind" the source is the path to the mount_source. Otherwise i'ts identical to device().
returns the Parent Mountpoint Object
returns a list of Child Mountpoint Objects
returns a list of all Child Mountpoint Objects
returns the root-filesystem Mountpoint
Tobias Grönhagen, <linux_mountpoint at topeg.de>
Please report any bugs or feature requests to bug-linux-mountpoint at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Linux-MountPoint. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Linux::MountPoint
You can also look for information at:
Copyright 2012 Tobias Grönhagen. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License (GPL) version 2 as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Use of this software in any way or in any form, source or binary, is not allowed in any country which prohibits disclaimers of any implied warranties of merchantability or fitness for a particular purpose or any disclaimers of a similar nature.
IN NO EVENT SHALL I BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION (INCLUDING, BUT NOT LIMITED TO, LOST PROFITS) EVEN IF I HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE