copy: adjust fiemap handling of sparse files
commit275c831a3c4fd53638d4a1109cd266c359abc3c1
authorPádraig Brady <P@draigBrady.com>
Thu, 10 Feb 2011 17:47:21 +0000 (10 17:47 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 11 Feb 2011 00:13:31 +0000 (11 00:13 +0000)
tree6e5dc37440443f264ecb82c88ab315d841a646be
parent6f95025c9daf8fb3ed785ff1b650ade5066a58f4
copy: adjust fiemap handling of sparse files

Don't depend on heuristics to detect sparse files
if fiemap is available.  Also don't scan for new
holes unless --sparse=always has been specified.

* src/copy.c (extent_copy): Pass the user specified
sparse mode, and handle as described above.
src/copy.c