
Solaris::Disk::Mnttab - Read Solaris list of mounted devices

use Solaris::Disk::Mnttab; $mnttab = Solaris::Disk::Mnttab::new(%options);

Solaris::Disk::Mnttab aims to provide methods to read Solaris' current mounted device table.
Two tables are read: /etc/mnttab and the result of `swap -l`.

newThe new method returns a new Solaris::Disk::Mnttab object.
No initialisation nor information read.
$mnttab = Solaris::Disk::Mnttab->new();
Initialise and read tables, from optional sources
$mnttab = Solaris::Disk::Mnttab->new( init => 1,
[ mnttab => '/etc/mnttab', ]
[ swaptab => 'swap -l |', ]
);
readmtabThe readmtab method allows one to (re-)read the /etc/mnttab or, if specified, the source given by the mnttab argument.
$mnttab->readmtab; # reads from system /etc/mnttab $mnttab->readmtab( mnttab => 'mymnttabdump.txt');
readstabThe readstab method allows one to (re-)read the swap table, as given by the /sbin/swap -l command.
If specified, the source given by the swaptab argument is used instead.
$mnttab->readstab; # reads from "swap -l" $mnttab->readstab( swaptab => 'myswap-l.txt');

Jérôme Fenal <jfenal@free.fr>

This is version 0.03 of the Solaris::Disk::Mnttab

Copyright (C) 2004, 2005 Jérôme Fenal. All Rights Reserved
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See Solaris::Disk::VTOC(3pm) to access slice information. See Solaris::Disk::SVM(3pm) to access SDS/SVM device information.