summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-10-24 21:14:50 +0000
committerpjd <pjd@FreeBSD.org>2011-10-24 21:14:50 +0000
commit7f814b700d8ebd9d427f04ce0902705af1a9d625 (patch)
treec72e3c411813edfc145bedbe98797b87d21b108f /cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
parent036925291ef871d3375f7b7d4b0331d461df82a3 (diff)
downloadFreeBSD-src-7f814b700d8ebd9d427f04ce0902705af1a9d625.zip
FreeBSD-src-7f814b700d8ebd9d427f04ce0902705af1a9d625.tar.gz
Extend r226676 to allow rename without unmount even for file systems with
non-legacy mountpoints. It is better to be able to rename such file systems and let them be mounted in old places until next reboot than using live CD, etc. to rename with remount. This is implemented by adding -u option to 'zfs rename'. If file system's mountpoint property is set to 'legacy' or 'none', there is no need to specify -u. Update zfs(8) manual page to reflect this addition. MFC after: 2 weeks
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h')
-rw-r--r--cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h b/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
index db4aca7..e52a649 100644
--- a/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
+++ b/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_impl.h
@@ -160,11 +160,9 @@ int zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp,
*/
#define CL_GATHER_MOUNT_ALWAYS 0x01
/*
- * Use this changelist_gather() flag to prevent unmounting of legacy
- * file systems. Useful when renaming legacy file systems, where there is
- * no need to unmount them.
+ * Use this changelist_gather() flag to prevent unmounting of file systems.
*/
-#define CL_GATHER_KEEP_LEGACY 0x02
+#define CL_GATHER_DONT_UNMOUNT 0x02
typedef struct prop_changelist prop_changelist_t;
OpenPOWER on IntegriCloud