btrfs-progs: send: use splice syscall instead of read/write to transfer buffer
authorDavid Sterba <dsterba@suse.com>
Wed, 2 Nov 2016 13:54:10 +0000 (14:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 14 Dec 2016 14:06:34 +0000 (15:06 +0100)
commitba23855cdc8961bbaef1fcad4854d494cdb3afd3
tree4e49d4418d7b07066025eda008fcb9a5905d3c41
parentf6f9cd0cb76f52febd4f6579a4fb176c4d501068
btrfs-progs: send: use splice syscall instead of read/write to transfer buffer

We can utilize the splice syscall as the source descriptor is a pipe and
avoid read/write through userspace. The original implementation is kept
but shall be removed in the future.

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