Re: [RESEND][PATCH] btrfs: add "no file data" flag to btrfs send ioctl

2013-02-04 Thread Mark Fasheh
On Mon, Feb 04, 2013 at 04:48:56PM +0100, David Sterba wrote: > On Wed, Jan 30, 2013 at 02:43:41PM -0800, Mark Fasheh wrote: > > @@ -4570,6 +4605,11 @@ long btrfs_ioctl_send(struct file *mnt_file, void > > __user *arg_) > > INIT_RADIX_TREE(&sctx->name_cache, GFP_NOFS); > > INIT_LIST_HEAD(&

Re: [RESEND][PATCH] btrfs: add "no file data" flag to btrfs send ioctl

2013-02-04 Thread David Sterba
On Wed, Jan 30, 2013 at 02:43:41PM -0800, Mark Fasheh wrote: > @@ -4570,6 +4605,11 @@ long btrfs_ioctl_send(struct file *mnt_file, void > __user *arg_) > INIT_RADIX_TREE(&sctx->name_cache, GFP_NOFS); > INIT_LIST_HEAD(&sctx->name_cache_list); > > + if (arg->flags & ~BTRFS_SEND_FLA

[RESEND][PATCH] btrfs: add "no file data" flag to btrfs send ioctl

2013-01-30 Thread Mark Fasheh
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