mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-25 23:04:44 +02:00
Add debugging hooks
This commit is contained in:
parent
684adff3ca
commit
7aa8bb4a27
@ -668,10 +668,14 @@ if printarray:
|
|||||||
|
|
||||||
if pcipath:
|
if pcipath:
|
||||||
diskprefix = str('/dev/disk/by-path/pci-' + pcipath + '-scsi-0:')
|
diskprefix = str('/dev/disk/by-path/pci-' + pcipath + '-scsi-0:')
|
||||||
|
dbgprint('Will look for DISKprefix : ' + diskprefix)
|
||||||
for j in range (8):
|
for j in range (8):
|
||||||
diskpath = diskprefix + str(j) + ':' + str(arrayinfo[7]) + ':0'
|
diskpath = diskprefix + str(j) + ':' + str(arrayinfo[7]) + ':0'
|
||||||
|
dbgprint('Looking for DISKpath : ' + diskpath)
|
||||||
if os.path.exists(diskpath):
|
if os.path.exists(diskpath):
|
||||||
arrayinfo[7] = os.path.realpath(diskpath)
|
arrayinfo[7] = os.path.realpath(diskpath)
|
||||||
|
dbgprint('Found DISK match: ' + diskpath + ' -> ' + arrayinfo[7])
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
arrayinfo[7] = 'N/A'
|
arrayinfo[7] = 'N/A'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user