reflink icon indicating copy to clipboard operation
reflink copied to clipboard

linux: improve portability of the ficlone ioctl

Open th1000s opened this issue 4 years ago • 1 comments

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 of the nix::ioctl* macros, so avoid the nix dependency.

th1000s avatar Sep 19 '21 21:09 th1000s

request_code_write! is exported from nix (at least now), how big would be the disadvantage of pulling in nix without any additional features, maybe besides ioctl?

fogti avatar Sep 11 '22 22:09 fogti