summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/send.h
diff options
context:
space:
mode:
authorMark Fasheh <mfasheh@suse.de>2013-02-04 20:54:57 +0000
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 12:59:39 -0500
commitcb95e7bf7ba481c3d35b238b1cd671b63f54238a (patch)
tree0b2d4906688ca6447a191bcb5f6fe91e0628bda9 /fs/btrfs/send.h
parent2f697dc6a648d3a16f512fe7a53281d55cce1570 (diff)
downloadlinux-cb95e7bf7ba481c3d35b238b1cd671b63f54238a.tar.bz2
btrfs: add "no file data" flag to btrfs send ioctl
This patch adds the flag, BTRFS_SEND_FLAG_NO_FILE_DATA to the btrfs send ioctl code. When this flag is set, the btrfs send code will never write file data into the stream (thus also avoiding expensive reads of that data in the first place). BTRFS_SEND_C_UPDATE_EXTENT commands will be sent (instead of BTRFS_SEND_C_WRITE) with an offset, length pair indicating the extent in question. This patch does not affect the operation of BTRFS_SEND_C_CLONE commands - they will continue to be sent when a search finds an appropriate extent to clone from. Signed-off-by: Mark Fasheh <mfasheh@suse.de> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/send.h')
-rw-r--r--fs/btrfs/send.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/send.h b/fs/btrfs/send.h
index 1bf4f32fd4ef..8bb18f7ccaa6 100644
--- a/fs/btrfs/send.h
+++ b/fs/btrfs/send.h
@@ -86,6 +86,7 @@ enum btrfs_send_cmd {
BTRFS_SEND_C_UTIMES,
BTRFS_SEND_C_END,
+ BTRFS_SEND_C_UPDATE_EXTENT,
__BTRFS_SEND_C_MAX,
};
#define BTRFS_SEND_C_MAX (__BTRFS_SEND_C_MAX - 1)