From 1f0f27059a50d38cec69c7120b9f7a3045838792 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 13 Dec 2019 23:23:06 -0500 Subject: [PATCH] e2scrub: fix the 30 second timeout when trying to remove a snapshot Signed-off-by: Theodore Ts'o --- scrub/e2scrub.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrub/e2scrub.in b/scrub/e2scrub.in index b778a92a9..f21499b69 100644 --- 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. - 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 -- 2.39.2