NAME
Solaris::MapDev - map between instance numbers and device names
SYNOPSIS
use Solaris::MapDev qw(inst_to_dev dev_to_inst inst_dev_display);
my $disk = inst_to_dev("sd0");
my $tape = inst_to_dev("st1");
my $nfs = inst_to_dev("nfs123");
my $inst = dev_to_inst("c0t0d0s0");
DESCRIPTION
This module maps both ways between device instance names (e.g. sd0) and /dev entries (e.g. c0t0d0). 'Vanilla' SCSI disks, SSA disks, A1000, A3000, A3500 and A5000 disks are all catered for, as are tape devices and NFS mounts.
FUNCTIONS
inst_to_dev($inst)
Return the device name name given the instance name
dev_to_inst($dev)
Return the instance name given the device name
get_inst_names
Return a sorted list of all the instance names
get_dev_names
Return a sorted list of all the device names
AUTHOR
Alan Burlison, <Alan.Burlison@uk.sun.com>
SEE ALSO
perl(1), /etc/path_to_inst, /dev/osa, /dev/rdsk, /dev/rmt, /etc/mnttab