btrfs-progs: send: fix handling of multiple snapshots (-p option)
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 19 Oct 2016 02:35:03 +0000 (11:35 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Nov 2016 12:13:47 +0000 (13:13 +0100)
commit6d4fb3dcc13fdd3e04917bc656c8926116d13e44
tree6d6f5653236494c1a19065688982bf40742b50d3
parentcf5a680b82909382b8e8546748d2a6811a167e41
btrfs-progs: send: fix handling of multiple snapshots (-p option)

We cannot send multiple snapshots at once by -p option.

[before]
# btrfs send -f /tmp/data0 -p Snap0 Snap[12]
At subvol Snap1
At subvol Snap2
ERROR: parent determination failed for 0
#

[after]
# btrfs send -f /tmp/data0 -p Snap0 Snap[12]
At subvol Snap1
At subvol Snap2
#

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-send.c