reflink
reflink copied to clipboard
Cross-platform(!) COW reflink copy of files
@nicokoch, can you please release a new version? The latest stable fails to build on Alpine Linux (musl), but it has been already fixed in master (#4).
Use the request_code_write!() macro copied from the nix crate to portably generate the request code. Since the ficlone ioctl takes two file descriptors it can not be created by one...
this lib is good but I can not build it since I do not have VS, it will be great if you build one and put it in the release
See https://github.com/microsoft/CopyOnWrite/issues/3 where creating clones can return success but the file is all zeroes (i.e. region clone did not actually take effect). PR in which I added serialization based on...
``` error[E0308]: mismatched types --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/reflink-0.1.3/src/sys/unix.rs:21:39 | 21 | libc::ioctl(dest.as_raw_fd(), IOCTL_FICLONE, src.as_raw_fd()) | ----------- ^^^^^^^^^^^^^ expected `i32`, found `u64` | | | arguments to this function are incorrect | note:...