mirror_zfs/include/os/linux
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 #12209
Closes #14070
2022-10-28 09:48:58 -07:00
..
kernel/linux Remove zpl_revalidate: fix snapshot rollback 2022-10-28 09:47:19 -07:00
spl debug: add VERIFY_{IMPLY,EQUIV} variants 2022-10-28 09:48:43 -07:00
zfs/sys zfs_rename: restructure to have cleaner fallbacks 2022-10-28 09:48:58 -07:00
Makefile.am zed: mark disks as REMOVED when they are removed 2022-09-28 09:48:46 -07:00