btrfs-progs: send: check for output file existence before creating
authorDavid Sterba <dsterba@suse.com>
Mon, 7 Nov 2016 15:51:20 +0000 (16:51 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 11 Nov 2016 15:23:29 +0000 (16:23 +0100)
commit84d1f29d47839ab60e8362f0e05f176d0c6d0755
treee3a45544de22c0c62bf44d68eb88f4108d8fc1c4
parent7d405df0da1c6b881fdd251755bc2f71a03f2b62
btrfs-progs: send: check for output file existence before creating

In some cases the root might not be able to create the output file (and
streaming to stdout is not an option). Make the output file creation two
step and let it work if the file is already created.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-send.c