]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2scrub: reorder exit status check after calling lvremove
authorSamuel Smith <satlug@net153.net>
Sat, 5 Jul 2025 03:38:21 +0000 (22:38 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 9 Jul 2025 16:43:09 +0000 (12:43 -0400)
commitfb9b2e7c9cf90e2c4eabcf1cffbde443e8eeb360
tree962cd08c9f73bc8a11f392ba265fa8c9b78fdb32
parentda631e117dcf8797bfda0f48bdaa05ac0fbcf7af
e2scrub: reorder exit status check after calling lvremove

Checking for snapshot device existence resets the status code in $?.
Reording the conditions will allow the retry loop to work properly.

Signed-off-by: Samuel Smith <satlug@net153.net>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20250705033821.3695205-1-satlug@net153.net
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub.in