one more
This commit is contained in:
1 parent
300beededb
commit
b489c69772
1 file changed
+3
-3
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user