#4991·libuv

Add CoW support on Windows

Author: phuclv90Created Jan 8, 2026Updated Aug 12, 2026
Labelswindows

ReFS on Windows has supported CoW for a long time, yet fs__copyfile still returns error when FICLONE_FORCE mode is used, and when FICLONE is used then it still calls the normal CopyFileW API instead of FSCTL_DUPLICATE_EXTENTS_TO_FILE(_EX) to clone

https://github.com/libuv/libuv/blob/e5f79e487b7cb10d6675f965493521f80cdce4c5/src/win/fs.c#L2352C1-L2355C4

Nowadays developers are encourage to use Dev Drive to improve performance, which uses ReFS under the hood along with various other optimizations