]> Pileus Git - ~andy/linux/commit
Btrfs: fix send to deal with sparse files properly
authorJosef Bacik <jbacik@fusionio.com>
Tue, 20 Aug 2013 19:55:39 +0000 (15:55 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:21 +0000 (08:16 -0400)
commit57cfd4627046efc43081d26b5db77dbfb7595caa
treea6b3e4b5c665d064ded9e996da5487a7fbaedefc
parentbdab49d760c14dd7d5a8f64dbfedd7a3f1121e9b
Btrfs: fix send to deal with sparse files properly

Send was just sending everything it found, even if the extent was a hole.  This
is unpleasant for users, so just skip holes when we are sending.  This will also
skip sending prealloc extents since the send spec doesn't have a prealloc
command.  Eventually we will add a prealloc command and rev the send version so
we can send down the prealloc info.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/send.c