Whamcloud - gitweb
e2scrub: fix the 30 second timeout when trying to remove a snapshot
authorTheodore Ts'o <tytso@mit.edu>
Sat, 14 Dec 2019 04:23:06 +0000 (23:23 -0500)
committerTheodore 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

index b778a92..f21499b 100644 (file)
@@ -201,7 +201,7 @@ mark_corrupt() {
 
 setup() {
        # Try to remove snapshot for 30s, bail out if we can't remove it.
-       lveremove_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