diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-07-25 17:19:24 -0400 |
---|---|---|
committer | Alexander Block <ablock84@googlemail.com> | 2012-07-25 17:30:19 -0400 |
commit | 31db9f7c23fbf7e95026143f79645de6507b583b (patch) | |
tree | a3e416143bd08d8daca762f85a6d260e49c56c61 /fs/btrfs/ioctl.c | |
parent | 7069830a9e381e33d44ded45095f764844c71d24 (diff) |
Btrfs: introduce BTRFS_IOC_SEND for btrfs send/receive
This patch introduces the BTRFS_IOC_SEND ioctl that is
required for send. It allows btrfs-progs to implement
full and incremental sends. Patches for btrfs-progs will
follow.
Signed-off-by: Alexander Block <ablock84@googlemail.com>
Reviewed-by: David Sterba <dave@jikos.cz>
Reviewed-by: Arne Jansen <sensille@gmx.net>
Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Reviewed-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 99fe2ce7f721..bca6997fdb80 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #include "inode-map.h" | 54 | #include "inode-map.h" |
55 | #include "backref.h" | 55 | #include "backref.h" |
56 | #include "rcu-string.h" | 56 | #include "rcu-string.h" |
57 | #include "send.h" | ||
57 | 58 | ||
58 | /* Mask out flags that are inappropriate for the given type of inode. */ | 59 | /* Mask out flags that are inappropriate for the given type of inode. */ |
59 | static inline __u32 btrfs_mask_flags(umode_t mode, __u32 flags) | 60 | static inline __u32 btrfs_mask_flags(umode_t mode, __u32 flags) |
@@ -3571,6 +3572,8 @@ long btrfs_ioctl(struct file *file, unsigned int | |||
3571 | return btrfs_ioctl_balance_progress(root, argp); | 3572 | return btrfs_ioctl_balance_progress(root, argp); |
3572 | case BTRFS_IOC_SET_RECEIVED_SUBVOL: | 3573 | case BTRFS_IOC_SET_RECEIVED_SUBVOL: |
3573 | return btrfs_ioctl_set_received_subvol(file, argp); | 3574 | return btrfs_ioctl_set_received_subvol(file, argp); |
3575 | case BTRFS_IOC_SEND: | ||
3576 | return btrfs_ioctl_send(file, argp); | ||
3574 | case BTRFS_IOC_GET_DEV_STATS: | 3577 | case BTRFS_IOC_GET_DEV_STATS: |
3575 | return btrfs_ioctl_get_dev_stats(root, argp, 0); | 3578 | return btrfs_ioctl_get_dev_stats(root, argp, 0); |
3576 | case BTRFS_IOC_GET_AND_RESET_DEV_STATS: | 3579 | case BTRFS_IOC_GET_AND_RESET_DEV_STATS: |