]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 b778a92a93e3a81891ad6c314dbb7c9c96eb85f1..f21499b69226816bc7db542ad81cfa6bb5a0f706 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