1
0
mirror of https://git.proxmox.com/git/mirror_zfs.git synced 2025-03-27 22:16:21 +03:00
mirror_zfs/include/os
Aleksa Sarai e015d6cc0b zfs_rename: restructure to have cleaner fallbacks
This is in preparation for RENAME_EXCHANGE and RENAME_WHITEOUT support
for ZoL, but the changes here allow for far nicer fallbacks than the
previous implementation (the source and target are re-linked in case of
the final link failing).

In addition, a small cleanup was done for the "target exists but is a
different type" codepath so that it's more understandable.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Closes 
Closes 
2022-10-28 09:48:58 -07:00
..
freebsd FreeBSD: vn_flush_cached_data: observe vnode locking contract 2022-10-26 15:00:58 -07:00
linux zfs_rename: restructure to have cleaner fallbacks 2022-10-28 09:48:58 -07:00