reflink
reflink copied to clipboard
linux: improve portability of the ficlone ioctl
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.
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?