diff options
author | cjihrig <cjihrig@gmail.com> | 2018-03-06 21:23:35 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-03-16 01:00:43 -0400 |
commit | 3ae88200d6f52ea7b3d8ff9b8164adde65f6c43a (patch) | |
tree | e83ccc416c50b8fc3a3c0d412753c3843d71115a /docs/src | |
parent | 36671bf32c1043c70a43058248c1ea884c5dd3cd (diff) | |
download | libuv-3ae88200d6f52ea7b3d8ff9b8164adde65f6c43a.tar.gz libuv-3ae88200d6f52ea7b3d8ff9b8164adde65f6c43a.zip |
unix,win: add UV_FS_COPYFILE_FICLONE_FORCE support
UV_FS_COPYFILE_FICLONE_FORCE attempts to use copy-on-write
semantics in uv_fs_copyfile(). If CoW is not available, an
error is returned.
Refs: https://github.com/libuv/libuv/pull/1465
Refs: https://github.com/libuv/libuv/pull/1491
PR-URL: https://github.com/libuv/libuv/pull/1768
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/fs.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/src/fs.rst b/docs/src/fs.rst index 77096eff..29227be0 100644 --- a/docs/src/fs.rst +++ b/docs/src/fs.rst @@ -252,6 +252,9 @@ API - `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. + - `UV_FS_COPYFILE_FICLONE_FORCE`: 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 an error is returned. .. warning:: If the destination path is created, but an error occurs while copying @@ -261,7 +264,8 @@ API .. versionadded:: 1.14.0 - .. versionchanged:: 1.20.0 `UV_FS_COPYFILE_FICLONE` is supported. + .. versionchanged:: 1.20.0 `UV_FS_COPYFILE_FICLONE` and + `UV_FS_COPYFILE_FICLONE_FORCE` are 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) |