summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@gmail.com>2014-06-01 04:50:28 +0400
committerChris Mason <clm@fb.com>2014-06-10 04:21:09 +0400
commitf82a9901b0321feb4b4dea1583c51bd75707dd4e (patch)
tree1220f3891d76ecd4effad62c261f2fa41a585d5c /fs/btrfs/ctree.c
parent964930312aec583809a690868119ce716f4ee926 (diff)
downloadlinux-f82a9901b0321feb4b4dea1583c51bd75707dd4e.tar.xz
Btrfs: fix clone to deal with holes when NO_HOLES feature is enabled
If the NO_HOLES feature is enabled holes don't have file extent items in the btree that represent them anymore. This made the clone operation ignore the gaps that exist between consecutive file extent items and therefore not create the holes at the destination. When not using the NO_HOLES feature, the holes were created at the destination. A test case for xfstests follows. Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
0 files changed, 0 insertions, 0 deletions