#20 Offline TRIM of ext2/3/4 misses first group of free blocks

open
nobody
None
5
2010-05-06
2010-05-06
R.
No

The regexp for matching the list of free blocks in dumpe2fs' output does not match for group 0 - the following patch fixes that:

@@ -632,7 +678,7 @@
blksects = $NF / 512
next
}
- /^Group [1-9][0-9]*:/ { ## Second stage output from dumpe2fs:
+ /^Group [0-9][0-9]*:/ { ## Second stage output from dumpe2fs:
in_groups = 1
next
}

Discussion