Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-25 Thread Jan Schmidt
Hi Alex, On Thu, January 24, 2013 at 19:06 (+0100), Alex Lyakas wrote: On Thu, Jan 24, 2013 at 7:13 PM, Jan Schmidt list.bt...@jan-o-sch.net wrote: We don't transfer the metadata itself and that's for good reason. The data should look alike from a user's point of view where possible. In places

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Alex Lyakas
...@cn.fujitsu.com wrote: 于 2013-1-23 19:56, Alex Lyakas 写道: Hi, On Wed, Jan 23, 2013 at 1:04 PM, Chen Yang chenyang.f...@cn.fujitsu.com wrote: From: Chen Yang chenyang.f...@cn.fujitsu.com Date: Wed, 23 Jan 2013 11:21:51 +0800 Subject: [PATCH] Btrfs/send: sparse and pre-allocated file support

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Miao Xie
: [PATCH] Btrfs/send: sparse and pre-allocated file support for btrfs-send mechanism When sending a file with sparse or pre-allocated part, these parts will be sent as ZERO streams, and it's unnecessary. There are two ways to improve this, one is just skip the EMPTY parts, and the other one

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Hugo Mills
and pre-allocated file support for btrfs-send mechanism When sending a file with sparse or pre-allocated part, these parts will be sent as ZERO streams, and it's unnecessary. There are two ways to improve this, one is just skip the EMPTY parts, and the other one is to add a punch command

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Miao Xie
chenyang.f...@cn.fujitsu.com wrote: 于 2013-1-23 19:56, Alex Lyakas 写道: Hi, On Wed, Jan 23, 2013 at 1:04 PM, Chen Yang chenyang.f...@cn.fujitsu.com wrote: From: Chen Yang chenyang.f...@cn.fujitsu.com Date: Wed, 23 Jan 2013 11:21:51 +0800 Subject: [PATCH] Btrfs/send: sparse and pre-allocated

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Hugo Mills
and pre-allocated file support for btrfs-send mechanism When sending a file with sparse or pre-allocated part, these parts will be sent as ZERO streams, and it's unnecessary. There are two ways to improve this, one is just skip the EMPTY parts, and the other one is to add a punch command

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Jan Schmidt
Hi Alex, On Thu, January 24, 2013 at 09:53 (+0100), Alex Lyakas wrote: Looking, for example, here: http://man7.org/linux/man-pages/man2/fallocate.2.html Allocating disk space The default operation (i.e., mode is zero) of fallocate() allocates and initializes to zero the disk space within

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-24 Thread Alex Lyakas
Hi Jan, On Thu, Jan 24, 2013 at 7:13 PM, Jan Schmidt list.bt...@jan-o-sch.net wrote: Hi Alex, On Thu, January 24, 2013 at 09:53 (+0100), Alex Lyakas wrote: Looking, for example, here: http://man7.org/linux/man-pages/man2/fallocate.2.html Allocating disk space The default operation (i.e.,

[PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-23 Thread Chen Yang
From: Chen Yang chenyang.f...@cn.fujitsu.com Date: Wed, 23 Jan 2013 11:21:51 +0800 Subject: [PATCH] Btrfs/send: sparse and pre-allocated file support for btrfs-send mechanism When sending a file with sparse or pre-allocated part, these parts will be sent as ZERO streams, and it's unnecessary

Re: [PATCH] Btrfs/send: sparse and pre-allocated file support for, btrfs-send mechanism

2013-01-23 Thread Alex Lyakas
Hi, On Wed, Jan 23, 2013 at 1:04 PM, Chen Yang chenyang.f...@cn.fujitsu.com wrote: From: Chen Yang chenyang.f...@cn.fujitsu.com Date: Wed, 23 Jan 2013 11:21:51 +0800 Subject: [PATCH] Btrfs/send: sparse and pre-allocated file support for btrfs-send mechanism When sending a file with sparse