NAME

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

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`.

SUBROUTINES/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');

DIAGNOSTICS

Could be also in the BUGS sections. Heavy usage of carp, so mainly a matter of looking at (non-blocking) error messages.

CONFIGURATION AND ENVIRONMENT

This module is supposed to run on Solaris, but it's been a long time I haven't had access to such a machine.

DEPENDENCIES

Solaris local file /etc/mnttab & command /sbin/swap.

INCOMPATIBILITIES

None known.

BUGS AND LIMITATIONS

See DIAGNOSTICS.

AUTHOR

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

VERSION

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

LICENSE AND COPYRIGHT

Copyright (C) 2004, 2005, 2010 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 274:

Non-ASCII character seen before =encoding in 'Jérôme'. Assuming CP1252