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
590f0761f4
, doesn't explain that. If that
is still necessary, better to add lseek(SEEK_DATA) check later.
This commit is contained in:
committed by
Justin Maggard
parent
958da67592
commit
42f0630198
Reference in New Issue
Block a user