diff options
author | Theodore Ts'o <tytso@mit.edu> | 2019-08-18 19:23:07 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2019-08-18 19:23:07 -0400 |
commit | 2e8cb3bebfd72c35922ddd5229fe0117b61ff19d (patch) | |
tree | bbc142351b9c2afd36740019aafbec4d0e8a2e89 | |
parent | 420246cd8faea0ceecc3119989e1c045035010f3 (diff) | |
download | e2fsprogs-2e8cb3bebfd72c35922ddd5229fe0117b61ff19d.tar.gz |
e2scrub_all: allow scrubbing in vg's whose free space == snapshot size
If the volume group's free space is exactly the same as snapshot size,
e2scrub_all will skip those logical volumes in those volume groups.
Fix this by changing the test from '>' to '>='.
Fixes: c120312253 ("e2scrub_all: make sure there's enough free space...")
Addresses-Debian-Bug: #935009
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | scrub/e2scrub_all.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scrub/e2scrub_all.in b/scrub/e2scrub_all.in index 5bdbd1168..2c563672e 100644 --- a/scrub/e2scrub_all.in +++ b/scrub/e2scrub_all.in @@ -103,7 +103,7 @@ fi # Find scrub targets, make sure we only do this once. ls_scan_targets() { - local devices=$(lvs -o lv_path --noheadings -S "lv_active=active,lv_role=public,lv_role!=snapshot,vg_free>${snap_size_mb}") + local devices=$(lvs -o lv_path --noheadings -S "lv_active=active,lv_role=public,lv_role!=snapshot,vg_free>=${snap_size_mb}") if [ -z "$devices" ]; then return 0; |