[pbs-devel] applied: [PATCH proxmox] fs: link fallback for atomic create
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jul 22 09:44:26 CEST 2021
On 22.07.21 09:33, Wolfgang Bumiller wrote:
> Some file systems don't support renameat2's RENAME_NOREPLACE
> flag (eg. ZFS), at the some time, some other file systems
> don't support hardlinks via link (eg. vfat, cifs), so we now
> try both: first the rename (since it's more efficient), then
> link+unlink for the rest.
>
> If both fail, the file system is simply not supported for
> our purposes anyway...
>
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
> proxmox/src/tools/fs.rs | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)
>
>
applied, thanks!
More information about the pbs-devel
mailing list