Jérôme Fenal > Solaris-Disk-Mnttab-0.03 > Solaris::Disk::Mnttab

Download:
Solaris-Disk-Mnttab-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.03   Source  

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

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.03 of the Solaris::Disk::Mnttab

COPYRIGHT ^

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 ALSO ^

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