mirror_zfs/man/man8
Ryan Moeller 76a157f004 Add 'zfs rename -u' to rename without remounting
Allow to rename file systems without remounting if it is possible.
It is possible for file systems with 'mountpoint' property set to
'legacy' or 'none' - we don't have to change mount directory for them.
Currently such file systems are unmounted on rename and not even
mounted back.

This introduces layering violation, as we need to update
'f_mntfromname' field in statfs structure related to mountpoint (for
the dataset we are renaming and all its children).

In my opinion it is worth it, as it allow to update FreeBSD in even
cleaner way - in ZFS-only configuration root file system is ZFS file
system with 'mountpoint' property set to 'legacy'. If root dataset is
named system/rootfs, we can snapshot it (system/rootfs@upgrade), clone
it (system/oldrootfs), update FreeBSD and if it doesn't boot we can
boot back from system/oldrootfs and rename it back to system/rootfs
while it is mounted as /. Before it was not possible, because
unmounting / was not possible.

Authored by: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported by: Matt Macy <mmacy@freebsd.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10839
2020-09-03 16:16:15 -07:00
..
.gitignore Ignore *.o.ur-safe build artifacts 2018-05-13 18:59:02 -07:00
fsck.zfs.8 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
Makefile.am Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
mount.zfs.8 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
vdev_id.8 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zdb.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zed.8.in man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zfs_ids_to_path.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-allow.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-bookmark.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-change-key.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-clone.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-create.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-destroy.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-diff.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-get.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-groupspace.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-hold.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-inherit.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-jail.8 Add FreeBSD jail support hooks 2019-12-11 11:58:37 -08:00
zfs-list.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-load-key.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-mount-generator.8.in man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zfs-mount.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-program.8 Support setting user properties in a channel program 2020-02-14 13:41:42 -08:00
zfs-project.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-projectspace.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-promote.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-receive.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-recv.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-redact.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-release.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-rename.8 Add 'zfs rename -u' to rename without remounting 2020-09-03 16:16:15 -07:00
zfs-rollback.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-send.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-set.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-share.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-snapshot.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-unallow.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unjail.8 Add FreeBSD jail support hooks 2019-12-11 11:58:37 -08:00
zfs-unload-key.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-unmount.8 Reorganize zfs(8) man page into sections 2019-11-12 11:17:40 -08:00
zfs-upgrade.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-userspace.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs-wait.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfs.8 Add the Xr's to the SEE ALSO as well 2020-08-27 16:07:10 -07:00
zfsconcepts.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zfsprops.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zgenhostid.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zinject.8 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zpool-add.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-attach.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-checkpoint.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-clear.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-create.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-destroy.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-detach.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-events.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-export.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-get.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-history.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-import.8 Improve documentation of zpool import -d/-c vs -s 2020-08-23 21:18:30 -07:00
zpool-initialize.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-iostat.8 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00
zpool-labelclear.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-list.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-offline.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-online.8 Reorganize zpool(8) man page into sections 2019-11-13 09:21:07 -08:00
zpool-reguid.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-remove.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-reopen.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-replace.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-resilver.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-scrub.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-set.8 Reorganize zpool(8) man page into sections 2019-11-13 09:21:07 -08:00
zpool-split.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-status.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-sync.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-trim.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-upgrade.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool-wait.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpool.8 Add the Xr's to the SEE ALSO as well 2020-08-27 16:07:10 -07:00
zpoolconcepts.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zpoolprops.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zstream.8 Remove hard coded "Linux" OS from manpages 2020-08-21 11:55:47 -07:00
zstreamdump.8 man: Canonicalize .TH usage 2020-08-24 21:25:28 -07:00