Node: Support UV_FS_COPYFILE_FICLONE

Created on 5 Mar 2018  ยท  2Comments  ยท  Source: nodejs/node

UV_FS_COPYFILE_FICLONE was just merged to libuv: unix: add UV_FS_COPYFILE_FICLONE support

When will be this merged into node? Will this be backported to node 8?

Most helpful comment

I'll be adding support for it when the next libuv update is merged. My guess is that it will be backported to Node 8, as most of the work happens in libuv.

All 2 comments

I'll be adding support for it when the next libuv update is merged. My guess is that it will be backported to Node 8, as most of the work happens in libuv.

Relevant paragraph from libuv docs:

.. c:function:: int uv_fs_copyfile(uv_loop_t* loop, uv_fs_t* req, const char* path, const char* new_path, int flags, uv_fs_cb cb)
Copies a file from path to new_path. Supported flags are described below.
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
- 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.
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
.. versionchanged:: 1.20.0 UV_FS_COPYFILE_FICLONE is supported.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

filipesilvaa picture filipesilvaa  ยท  3Comments

ksushilmaurya picture ksushilmaurya  ยท  3Comments

addaleax picture addaleax  ยท  3Comments

akdor1154 picture akdor1154  ยท  3Comments

danielstaleiny picture danielstaleiny  ยท  3Comments