Rob van der Heij writes:
> vmlinx linux007 201 /mnt/tmp
> Yes, vmlinx is a little bash script that issues the CP LINK command
> through hcp, adds the new device to /proc/dasd/devices and issues the
> mount.
If you replace the invocation of mount with something that just outputs
a map line like "-fstype=auto :/dev/$dasd$partition" then you can turn
it into an automount script for autofs. Then you can have
vi /mdisk/linux007.201/etc/inittab
automount the filesystem for you and auto-unmount it when you haven't
touched it for a while.
For an encore, have a similar script which detects if anyone else has
linked to the minidisk and wait until it's free before outputting the
line. Use another automount daemon over a separate mountpoint with a
timeout of only a few seconds. Then you have a somewhat basic shared
filesystem that at least can be used for letting things like
cp /mdiskshare/lxconfig.300/someconfig /etc/someconfig
report_summary > /mdiskshare/lxconfig.300/`hostname`.`date +%j`
be automated. Yes, it's fragile and any guest that holds a file open
on it or cd's into a directory on it can block other guests
indefinitely but I can still imagine it being useful in some
environments. Naming is a bit finicky (best to enforce canonical
naming, say lower case guest name, non-zero-padded lower-case hex and
partition number as :2,:3,:4 with an enforced omission defaulting to
partition 1, otherwise the autmounters keys and mapping give rise to
a few interesting problems).
Similar things are doable for /devno/123 and /volser/ABCDEF too
(with the latter having further interesting namespace issues with the
duplicate volsers that tend to happen on minidisks rather than real
volumes).
--Malcolm
--
Malcolm Beattie <[EMAIL PROTECTED]>
Linux Technical Consultant
IBM EMEA Enterprise Server Group...
...from home, speaking only for myself
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390