btrfs-progs: receiv: fail on first -ENODATA only
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 29 Apr 2017 21:54:05 +0000 (23:54 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 May 2017 14:23:14 +0000 (16:23 +0200)
commit9845d93bb2f158fa2f48e45b0e02e13ad6be6677
tree37fed067f1f5c1be0ba53542a195f97bb6d7e9ad
parentf8c82394c4f9075ff8e006606b309f67281fa771
btrfs-progs: receiv: fail on first -ENODATA only

Returning -ENODATA is only considered invalid on the first run of the
loop where we would detect entirely empty stream.

The enhanced test misc-tests/018-recv-end-of-stream now passes.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195597
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-receive.c