4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
21 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
23 .\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
24 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
26 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
27 .\" Copyright (c) 2014 Integros [integros.com]
28 .\" Copyright 2019 Richard Laager. All rights reserved.
29 .\" Copyright 2018 Nexenta Systems, Inc.
30 .\" Copyright 2019 Joyent, Inc.
38 .Nd rename ZFS dataset
43 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
44 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
49 .Ar filesystem Ns | Ns Ar volume
50 .Ar filesystem Ns | Ns Ar volume
55 .Ar filesystem Ar filesystem
59 .Ar snapshot Ar snapshot
67 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
68 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
75 .Ar filesystem Ns | Ns Ar volume
76 .Ar filesystem Ns | Ns Ar volume
86 Renames the given dataset.
87 The new target can be located anywhere in the ZFS hierarchy, with the exception
89 Snapshots can only be renamed within the parent file system or volume.
90 When renaming a snapshot, the parent file system of the snapshot does not need
91 to be specified as part of the second argument.
92 Renamed file systems can inherit new mount points, in which case they are
93 unmounted and remounted at the new mount point.
96 Force unmount any file systems that need to be unmounted in the process.
97 This flag has no effect if used together with the
101 Creates all the nonexistent parent datasets.
102 Datasets created in this manner are automatically mounted according to the
104 property inherited from their parent.
106 Do not remount file systems during rename.
113 the file system is not unmounted even if this option is not given.
119 .Ar snapshot Ar snapshot
121 Recursively rename the snapshots of all descendent datasets.
122 Snapshots are the only dataset that can be renamed recursively.