mirror of
https://github.com/nilfs-dev/nilfs-utils.git
synced 2026-01-26 13:43:15 +00:00
An issue exists where scrapped segments generated during recovery of dsync blocks are incorrectly determined to be protected due to comparisons using invalid segment summary sequence numbers on disk. Segments that are incorrectly determined to be protected will not be reclaimed for a long period of time, occupying disk space unnecessarily. In addition, it may prevent nilfs-resize from shrinking the file system. Fix these issues by using segment usage information to determine whether a segment has been scrapped, in which case it is considered unprotected without comparing sequence numbers. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>