Remove (st.st_blocks<<9 >= st.st_size) check. It may fail if a file system supports deduplication, compression and other features.
My guess the goal was to skip files with holes in them. Original commit 590f0761f4aba64c4a3b4c8f11543a929178da38, doesn't explain that. If that is still necessary, better to add lseek(SEEK_DATA) check later.
This commit is contained in:
parent
958da67592
commit
42f0630198
Loading…
x
Reference in New Issue
Block a user