copy: make extent_copy use sparse_copy, rather than its own code
authorJim Meyering <meyering@redhat.com>
Fri, 28 Jan 2011 20:19:50 +0000 (21:19 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 30 Jan 2011 19:44:12 +0000 (20:44 +0100)
commit0f91b6174e178720fea2d01734736a6477e4feac
tree3d2aab7147ae9fa619b464cf39c9c77def8587d7
parent8da69cbf30a24dfb328676a4630ccc12e445a85d
copy: make extent_copy use sparse_copy, rather than its own code

* src/copy.c (extent_copy): Before this change, extent_copy would fail
to create holes, thus breaking --sparse=auto and --sparse=always.
I.e., copying a large enough file of all zeros, cp --sparse=always
should introduce a hole, but with extent_copy, it would not.
src/copy.c