NAME

CfgTie::TieMTab -- an associative array of mount entries

SYNOPSIS

makes the mount table available as a regular hash:

tie %MTab, 'CfgTie::TieMTab';
tie %MTab, 'CfgTie::TieMTab_dev';

DESCRIPTION

The keys are path and devices.

The values are always list references. The lists are one of two forms. For local path, the list is of the form:

[$device, $path, $type, $options]

Other paths not in the mount table are of the form

[$device]

The form of device varies from system to system. It is usually the device specified in the mount table. NFS and other network mounts are of the form host:path. amd devices are different, and (at the time of this writing) their form isn't known.

Caveats

This requires Quota to work. You can get it from CPAN.

Files

/etc/mtab

(on many machines)

/proc/mounts

(on Linux machines)

See Also

Quota::

Author

Randall Maas (mailto:randym@acm.org, http://www.hamline.edu/~rcmaas/)