one more
This commit is contained in:
parent
300beededb
commit
b489c69772
@ -44,11 +44,11 @@ def chkDisk(disk):
|
|||||||
if not diff >= timedelta:
|
if not diff >= timedelta:
|
||||||
d += '_secondary'
|
d += '_secondary'
|
||||||
bb = ['badblocks',
|
bb = ['badblocks',
|
||||||
'-o /var/log/badblocks/{0}.log'.format(d),
|
'-o', '/var/log/badblocks/{0}.log'.format(d),
|
||||||
disk]
|
disk]
|
||||||
smctl = ['smartctl',
|
smctl = ['smartctl',
|
||||||
'-t long',
|
'-t', 'long',
|
||||||
'-d sat',
|
'-d', 'sat',
|
||||||
disk]
|
disk]
|
||||||
for c in (bb, smctl):
|
for c in (bb, smctl):
|
||||||
subprocess.run(c)
|
subprocess.run(c)
|
||||||
|
Loading…
Reference in New Issue
Block a user