From 7aa8bb4a27985beb9ba64b715c94f18d29c594f3 Mon Sep 17 00:00:00 2001 From: "Vincent S. Cojot" Date: Wed, 6 Dec 2017 11:08:16 -0500 Subject: [PATCH] Add debugging hooks --- wrapper-scripts/megaclisas-status | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wrapper-scripts/megaclisas-status b/wrapper-scripts/megaclisas-status index b3a2b8e..fc8de76 100755 --- a/wrapper-scripts/megaclisas-status +++ b/wrapper-scripts/megaclisas-status @@ -668,10 +668,14 @@ if printarray: if pcipath: diskprefix = str('/dev/disk/by-path/pci-' + pcipath + '-scsi-0:') + dbgprint('Will look for DISKprefix : ' + diskprefix) for j in range (8): diskpath = diskprefix + str(j) + ':' + str(arrayinfo[7]) + ':0' + dbgprint('Looking for DISKpath : ' + diskpath) if os.path.exists(diskpath): arrayinfo[7] = os.path.realpath(diskpath) + dbgprint('Found DISK match: ' + diskpath + ' -> ' + arrayinfo[7]) + break else: arrayinfo[7] = 'N/A'