Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Solaris::MapDev 0.05a

    Download button

    No screenshots available
    Downloads: 392  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alan Burlison | More programs
    GPL / FREE
    June 13th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Solaris::MapDev description

    Solaris::MapDev Perl module contains a map between instance numbers and device names.

    Solaris::MapDev Perl module contains a map between instance numbers and device names.

    SYNOPSIS

    use Solaris::MapDev qw(inst_to_dev dev_to_inst);
    my $disk = inst_to_dev("sd0");
    my $nfs = inst_to_dev("nfs123");
    my $inst = dev_to_inst("c0t0d0s0");
    mapdev_data_files(path_to_inst => "/copy/of/a/path_to_inst",
    mnttab => "/copy/of/a/mnttab",
    dev_ls => { "/dev/rdsk" => "ls-lR/of/dev_dsk",
    "/dev/rmt" => "ls-lR/of/dev_rmt" });
    my $tape = inst_to_dev("st1");

    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

    mapdev_data_files

    This tells mapdev to use data held in copies of the real datafiles, rather than the current "live" files on the system. This is useful for example when examining explorer output. A list of key-value pairs is expected as the arguments. Valid keys-value pairs are:

    path_to_inst => "/copy/of/a/path_to_inst",

    A valid path_to_inst file. This is mandatory.

    mnttab => "/copy/of/a/mnttab",

    A valid /etc/mnttab file. This is optional - if not
    specified, no information on NFS devices will be displayed.

    dev_ls => { "/dir/path" => "/ls-lR/of/dir/path",
    ... });

    A hash containing path/datafile pairs. The paths should
    be one of /dev/rdsk, /dev/osa/rdsk, /dev/osa/dev/rdsk or
    /dev/rmt. The datafiles should be the output of a "ls -l"
    of the specified directory. A single file containing a
    recursive "ls -Rl" of /dev is also acceptable.

    mapdev_system_files

    This tells mapdev to revert to using the current "live" datafiles on the system - see "mapdev_data_files()"

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    instance numbers | device names | Perl module | Solaris::MapDev | instance | numbers

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM