2 Jun
2021
2 Jun
'21
01:20
On Wednesday 2021-06-02 00:43, Niklas Haas wrote:
Some further digging confirms that zfs does not currently implement `renameat2`, it always returns `-EINVAL` if flags is nonzero.
Filesystems do not implement "renameat2" in itself and you can still use sys_renameat2 - provided, as you mentioned, that flags==0.
The best solution here seems to be to add a fallback path to the rpm script, in case that syscall fails.
And do what? You can't replicate the guarantees of RENAME_EXCHANGE without renameat2.