Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7a3dc
)
e2scrub: fix the 30 second timeout when trying to remove a snapshot
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 14 Dec 2019 04:23:06 +0000
(23:23 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 14 Dec 2019 04:23:06 +0000
(23:23 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub.in
patch
|
blob
|
history
diff --git
a/scrub/e2scrub.in
b/scrub/e2scrub.in
index
b778a92
..
f21499b
100644
(file)
--- a/
scrub/e2scrub.in
+++ b/
scrub/e2scrub.in
@@
-201,7
+201,7
@@
mark_corrupt() {
setup() {
# Try to remove snapshot for 30s, bail out if we can't remove it.
- lv
e
remove_deadline="$(( $(date "+%s") + 30))"
+ lvremove_deadline="$(( $(date "+%s") + 30))"
${DBG} lvremove -f "${LVM2_VG_NAME}/${snap}" 2>/dev/null
while [ -e "${snap_dev}" ] && [ "$?" -eq "5" ] &&
[ "$(date "+%s")" -lt "${lvremove_deadline}" ]; do