Enable copy_file_range when it is available.

Fallback to read+write when copy_file_range failed, as both fd_in and fd_out must refer to regular files.

Signed-off-by: LongPing Wei <weilongping@huawei.com>
2 files changed