btrfs-progs: send: fix handling of -c option
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Fri, 4 Nov 2016 08:33:58 +0000 (17:33 +0900)
committerDavid Sterba <dsterba@suse.com>
Fri, 11 Nov 2016 15:23:29 +0000 (16:23 +0100)
commit7d405df0da1c6b881fdd251755bc2f71a03f2b62
treec2c27fbabc1b27fbef75709a97b23d8007d21132
parent45827710e2b9ce7351b2959efcced922752d2e3c
btrfs-progs: send: fix handling of -c option

When two or more -c options are specified, cannot find a suitable
parent. So, output stream is bigger than correct one.

[before]
At subvol Snap1
At subvol Snap2
At subvol ../SnapY
-rw------- 1 root root 3153 Oct 19 10:37 /tmp/data1

[after]
At subvol Snap1
At subvol Snap2
At subvol ../SnapY
-rw------- 1 root root 1492 Oct 19 10:39 /tmp/data1

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
[ constify subvol argument, renamed single letter variables ]
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-send.c