On Thursday, 05/19/2016 at 04:57 GMT, Malcolm Beattie <[email protected]> wrote: > OK, best make it > my $dev = "/dev/disk/by-path/ccw-$devno"; > and have the caller ensure the argument is passed in canonical form.
I think a reasonable compromise would be that if the $devno doesn't have a dot in it, you can prefix it with "0.0.". If it has just one dot, prefix it with "0.". That way both the lazy and the OCD among us can happy! :-) Alan Altmark Senior Managing z/VM and Linux Consultant Lab Services System z Delivery Practice IBM Systems & Technology Group ibm.com/systems/services/labservices office: 607.429.3323 mobile; 607.321.7556 [email protected] IBM Endicott ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
