coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] copy: adjust fiemap handling of sparse files


From: Pádraig Brady
Subject: [PATCH] copy: adjust fiemap handling of sparse files
Date: Tue, 08 Feb 2011 23:39:03 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

I was looking at adding fallocate() to copy.c,
now that the fiemap code has gone in and
I noticed that if there was allocated space
at the end of a file, not accounted for
in st_size, then any holes would not be detected.
In what other cases does the sparse detection
heuristic fail BTW?

Anwyay, we don't need the heuristic with fiemap,
so I changed accordingly in the attached.

cheers,
Pádraig.

Attachment: fiemap-sparse.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]