Re: [PATCH] btrfs-progs: send-test: add checking of clone-src option

2016-11-08 Thread Tsutomu Itoh
On 2016/11/08 21:47, David Sterba wrote: > On Tue, Nov 08, 2016 at 08:53:04AM +0900, Tsutomu Itoh wrote: >> On 2016/11/08 0:16, David Sterba wrote: >>> On Fri, Nov 04, 2016 at 05:35:18PM +0900, Tsutomu Itoh wrote: +before_size=`ls -l "$here"/send.stream.before | awk '{print $5}'`

Re: [PATCH] btrfs-progs: send-test: add checking of clone-src option

2016-11-08 Thread David Sterba
On Tue, Nov 08, 2016 at 08:53:04AM +0900, Tsutomu Itoh wrote: > On 2016/11/08 0:16, David Sterba wrote: > > On Fri, Nov 04, 2016 at 05:35:18PM +0900, Tsutomu Itoh wrote: > >> +before_size=`ls -l "$here"/send.stream.before | awk '{print $5}'` > >> +after_size=`ls -l "$here"/send.stream.after | awk

Re: [PATCH] btrfs-progs: send-test: add checking of clone-src option

2016-11-07 Thread Tsutomu Itoh
On 2016/11/08 0:16, David Sterba wrote: > On Fri, Nov 04, 2016 at 05:35:18PM +0900, Tsutomu Itoh wrote: >> +before_size=`ls -l "$here"/send.stream.before | awk '{print $5}'` >> +after_size=`ls -l "$here"/send.stream.after | awk '{print $5}'` > > Thanks for the test. Minor fixes: "stat

Re: [PATCH] btrfs-progs: send-test: add checking of clone-src option

2016-11-07 Thread David Sterba
On Fri, Nov 04, 2016 at 05:35:18PM +0900, Tsutomu Itoh wrote: > +before_size=`ls -l "$here"/send.stream.before | awk '{print $5}'` > +after_size=`ls -l "$here"/send.stream.after | awk '{print $5}'` Thanks for the test. Minor fixes: "stat --format=%s" instead of the above, and /dev/zero instead of

[PATCH] btrfs-progs: send-test: add checking of clone-src option

2016-11-04 Thread Tsutomu Itoh
Sending stream size of clone-src(-c) option is checked. Signed-off-by: Tsutomu Itoh --- tests/misc-tests/016-send-clone-src/test.sh | 54 + 1 file changed, 54 insertions(+) create mode 100755 tests/misc-tests/016-send-clone-src/test.sh diff