diff options
author | cjihrig <cjihrig@gmail.com> | 2017-08-18 16:03:57 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-03-05 10:18:30 -0500 |
commit | db918361ebe4ef0435faf225345c2c67c8759e32 (patch) | |
tree | 0b065e70076fb05310d591c33502212e9b8e8eff /docs/src | |
parent | cb1acaa46fcaa9aa47c63c9f10852cc938ec9767 (diff) | |
download | libuv-db918361ebe4ef0435faf225345c2c67c8759e32.tar.gz libuv-db918361ebe4ef0435faf225345c2c67c8759e32.zip |
unix: add UV_FS_COPYFILE_FICLONE support
UV_FS_COPYFILE_FICLONE attemps to use copy-on-write
semantics in uv_fs_copyfile(). If CoW is not available,
it falls back to a normal copy operation.
Refs: https://github.com/libuv/libuv/pull/1465
PR-URL: https://github.com/libuv/libuv/pull/1491
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/fs.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/src/fs.rst b/docs/src/fs.rst index 87af828a..77096eff 100644 --- a/docs/src/fs.rst +++ b/docs/src/fs.rst @@ -249,6 +249,9 @@ API - `UV_FS_COPYFILE_EXCL`: If present, `uv_fs_copyfile()` will fail with `UV_EEXIST` if the destination path already exists. The default behavior is to overwrite the destination if it exists. + - `UV_FS_COPYFILE_FICLONE`: If present, `uv_fs_copyfile()` will attempt to + create a copy-on-write reflink. If the underlying platform does not + support copy-on-write, then a fallback copy mechanism is used. .. warning:: If the destination path is created, but an error occurs while copying @@ -258,6 +261,8 @@ API .. versionadded:: 1.14.0 + .. versionchanged:: 1.20.0 `UV_FS_COPYFILE_FICLONE` is supported. + .. c:function:: int uv_fs_sendfile(uv_loop_t* loop, uv_fs_t* req, uv_file out_fd, uv_file in_fd, int64_t in_offset, size_t length, uv_fs_cb cb) Limited equivalent to :man:`sendfile(2)`. |