Mark Post writes: > >>> On 5/19/2016 at 07:33 AM, Malcolm Beattie <beatt...@uk.ibm.com> wrote: > > my $dev = sprintf("/dev/disk/by-path/ccw-0.0.%04s", $devno); > > You should not assume that the first two pieces of the busid will always be > 0.0. Even today, it can be 0.1 or 0.2, etc., depending on what CSS the > device is in.
OK, best make it my $dev = "/dev/disk/by-path/ccw-$devno"; and have the caller ensure the argument is passed in canonical form. --Malcolm -- Malcolm Beattie Linux and System z Technical Consultant, zChampion IBM UK Systems and Technology Group ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu 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/