NAME
Solaris::Disk::Mnttab
SYNOPSIS
use Solaris::Disk::Mnttab;
$mnttab = Solaris::Disk::Mnttab::new(%options);
DESCRIPTION
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`
.
METHODS
new
The 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 |', ]
);
readmtab
The 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');
readstab
The 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');
AUTHOR
Jérôme Fenal <jfenal@free.fr>
VERSION
This is version 0.1 of the Solaris::Disk::Mnttab
COPYRIGHT
Copyright (C) 2004 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 ALSO
See Solaris::Disk::VTOC(3pm) to access slice information. See Solaris::Disk::SVM(3pm) to access SDS/SVM device information.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 227:
Non-ASCII character seen before =encoding in 'Jérôme'. Assuming CP1252