freebsd-dev/cddl/contrib/opensolaris/lib
Pawel Jakub Dawidek 497b7ef946 Allow to rename file systems without remounting if it is possible.
It is possible for file systems with 'mountpoint' preperty 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.

MFC after:	2 weeks
2011-10-24 00:38:09 +00:00
..
libctf/common Make this compile cleanly. 2008-04-26 04:22:32 +00:00
libdtrace Do not use #warning to warn about missing implementation of dt_popc(), 2011-06-19 12:52:50 +00:00
libgen/common MFV OpenSolaris DTrace userland bits. 2010-08-02 13:40:53 +00:00
libnvpair Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
libuutil/common Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
libzfs/common Allow to rename file systems without remounting if it is possible. 2011-10-24 00:38:09 +00:00
libzpool/common libzpool task_alloc: pass only valid flags to kmem_alloc 2011-10-21 13:53:06 +00:00
pyzfs/common Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00