projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fa327a
)
start from 0 secotor if first message isn't selftest error
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 24 Nov 2013 21:21:17 +0000
(21:21 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 24 Nov 2013 21:21:17 +0000
(21:21 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@305
191e9f34
-6774-4a6d-acfc-
7664dacd4a2a
recepies/smart/smart-test-relocate.pl
patch
|
blob
|
history
diff --git
a/recepies/smart/smart-test-relocate.pl
b/recepies/smart/smart-test-relocate.pl
index
a9289cd
..
859f16a
100755
(executable)
--- a/
recepies/smart/smart-test-relocate.pl
+++ b/
recepies/smart/smart-test-relocate.pl
@@
-61,12
+61,12
@@
sub smart_last_error {
if (/^#\s+1.+Completed: read failure\s+\S+\s+\S+\s+(\d+)/) {
write_sector $1;
smart_test $1;
- return;
+ return
1
;
}
}
}
-smart_last_error;
+smart_last_error
|| smart_test 0
;
while ( smart ) {
warn "sleep $delay s", ( $test_started ? " smart test running..." : "idle" ), "\n";