Whamcloud - gitweb
e2scrub_all: allow scrubbing in vg's whose free space == snapshot size
[tools/e2fsprogs.git] / scrub / e2scrub_all.in
index 5bdbd11..2c56367 100644 (file)
@@ -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;