mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-23 22:04:23 +02:00
Add debugging hooks
This commit is contained in:
parent
684adff3ca
commit
7aa8bb4a27
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user