xref: /freebsd/sys/contrib/openzfs/man/man8/zfs.8 (revision eda14cbc264d6969b02f2b1994cef11148e914f1)
1*eda14cbcSMatt Macy.\"
2*eda14cbcSMatt Macy.\" CDDL HEADER START
3*eda14cbcSMatt Macy.\"
4*eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the
5*eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License").
6*eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License.
7*eda14cbcSMatt Macy.\"
8*eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing.
10*eda14cbcSMatt Macy.\" See the License for the specific language governing permissions
11*eda14cbcSMatt Macy.\" and limitations under the License.
12*eda14cbcSMatt Macy.\"
13*eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each
14*eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the
16*eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying
17*eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner]
18*eda14cbcSMatt Macy.\"
19*eda14cbcSMatt Macy.\" CDDL HEADER END
20*eda14cbcSMatt Macy.\"
21*eda14cbcSMatt Macy.\"
22*eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
23*eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
24*eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
25*eda14cbcSMatt Macy.\" Copyright (c) 2011, Pawel Jakub Dawidek <pjd@FreeBSD.org>
26*eda14cbcSMatt Macy.\" Copyright (c) 2012, Glen Barber <gjb@FreeBSD.org>
27*eda14cbcSMatt Macy.\" Copyright (c) 2012, Bryan Drewery <bdrewery@FreeBSD.org>
28*eda14cbcSMatt Macy.\" Copyright (c) 2013, Steven Hartland <smh@FreeBSD.org>
29*eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
30*eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
31*eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
32*eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com]
33*eda14cbcSMatt Macy.\" Copyright (c) 2014, Xin LI <delphij@FreeBSD.org>
34*eda14cbcSMatt Macy.\" Copyright (c) 2014-2015, The FreeBSD Foundation, All Rights Reserved.
35*eda14cbcSMatt Macy.\" Copyright (c) 2016 Nexenta Systems, Inc. All Rights Reserved.
36*eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved.
37*eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc.
38*eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc.
39*eda14cbcSMatt Macy.\"
40*eda14cbcSMatt Macy.Dd June 30, 2019
41*eda14cbcSMatt Macy.Dt ZFS 8
42*eda14cbcSMatt Macy.Os
43*eda14cbcSMatt Macy.Sh NAME
44*eda14cbcSMatt Macy.Nm zfs
45*eda14cbcSMatt Macy.Nd configures ZFS file systems
46*eda14cbcSMatt Macy.Sh SYNOPSIS
47*eda14cbcSMatt Macy.Nm
48*eda14cbcSMatt Macy.Fl ?V
49*eda14cbcSMatt Macy.Nm
50*eda14cbcSMatt Macy.Cm version
51*eda14cbcSMatt Macy.Nm
52*eda14cbcSMatt Macy.Cm <subcommand>
53*eda14cbcSMatt Macy.Op Ar <args>
54*eda14cbcSMatt Macy.Sh DESCRIPTION
55*eda14cbcSMatt MacyThe
56*eda14cbcSMatt Macy.Nm
57*eda14cbcSMatt Macycommand configures ZFS datasets within a ZFS storage pool, as described in
58*eda14cbcSMatt Macy.Xr zpool 8 .
59*eda14cbcSMatt MacyA dataset is identified by a unique path within the ZFS namespace.
60*eda14cbcSMatt MacyFor example:
61*eda14cbcSMatt Macy.Bd -literal
62*eda14cbcSMatt Macypool/{filesystem,volume,snapshot}
63*eda14cbcSMatt Macy.Ed
64*eda14cbcSMatt Macy.Pp
65*eda14cbcSMatt Macywhere the maximum length of a dataset name is
66*eda14cbcSMatt Macy.Dv MAXNAMELEN
67*eda14cbcSMatt Macy.Pq 256 bytes
68*eda14cbcSMatt Macyand the maximum amount of nesting allowed in a path is 50 levels deep.
69*eda14cbcSMatt Macy.Pp
70*eda14cbcSMatt MacyA dataset can be one of the following:
71*eda14cbcSMatt Macy.Bl -tag -width "file system"
72*eda14cbcSMatt Macy.It Sy file system
73*eda14cbcSMatt MacyA ZFS dataset of type
74*eda14cbcSMatt Macy.Sy filesystem
75*eda14cbcSMatt Macycan be mounted within the standard system namespace and behaves like other file
76*eda14cbcSMatt Macysystems.
77*eda14cbcSMatt MacyWhile ZFS file systems are designed to be POSIX compliant, known issues exist
78*eda14cbcSMatt Macythat prevent compliance in some cases.
79*eda14cbcSMatt MacyApplications that depend on standards conformance might fail due to non-standard
80*eda14cbcSMatt Macybehavior when checking file system free space.
81*eda14cbcSMatt Macy.It Sy volume
82*eda14cbcSMatt MacyA logical volume exported as a raw or block device.
83*eda14cbcSMatt MacyThis type of dataset should only be used when a block device is required.
84*eda14cbcSMatt MacyFile systems are typically used in most environments.
85*eda14cbcSMatt Macy.It Sy snapshot
86*eda14cbcSMatt MacyA read-only version of a file system or volume at a given point in time.
87*eda14cbcSMatt MacyIt is specified as
88*eda14cbcSMatt Macy.Ar filesystem Ns @ Ns Ar name
89*eda14cbcSMatt Macyor
90*eda14cbcSMatt Macy.Ar volume Ns @ Ns Ar name .
91*eda14cbcSMatt Macy.It Sy bookmark
92*eda14cbcSMatt MacyMuch like a
93*eda14cbcSMatt Macy.Sy snapshot ,
94*eda14cbcSMatt Macybut without the hold on on-disk data.
95*eda14cbcSMatt MacyIt can be used as the source of a send (but not for a receive). It is specified as
96*eda14cbcSMatt Macy.Ar filesystem Ns # Ns Ar name
97*eda14cbcSMatt Macyor
98*eda14cbcSMatt Macy.Ar volume Ns # Ns Ar name .
99*eda14cbcSMatt Macy.El
100*eda14cbcSMatt Macy.Pp
101*eda14cbcSMatt MacyFor details see
102*eda14cbcSMatt Macy.Xr zfsconcepts 8 .
103*eda14cbcSMatt Macy.Ss Properties
104*eda14cbcSMatt MacyProperties are divided into two types, native properties and user-defined
105*eda14cbcSMatt Macy.Po or
106*eda14cbcSMatt Macy.Qq user
107*eda14cbcSMatt Macy.Pc
108*eda14cbcSMatt Macyproperties.
109*eda14cbcSMatt MacyNative properties either export internal statistics or control ZFS behavior.
110*eda14cbcSMatt MacyIn addition, native properties are either editable or read-only.
111*eda14cbcSMatt MacyUser properties have no effect on ZFS behavior, but you can use them to annotate
112*eda14cbcSMatt Macydatasets in a way that is meaningful in your environment.
113*eda14cbcSMatt MacyFor more information about properties, see the
114*eda14cbcSMatt Macy.Xr zfsprops 8 man page.
115*eda14cbcSMatt Macy.Ss Encryption
116*eda14cbcSMatt MacyEnabling the
117*eda14cbcSMatt Macy.Sy encryption
118*eda14cbcSMatt Macyfeature allows for the creation of encrypted filesystems and volumes.
119*eda14cbcSMatt MacyZFS will encrypt file and zvol data, file attributes, ACLs, permission bits,
120*eda14cbcSMatt Macydirectory listings, FUID mappings, and
121*eda14cbcSMatt Macy.Sy userused
122*eda14cbcSMatt Macy/
123*eda14cbcSMatt Macy.Sy groupused
124*eda14cbcSMatt Macydata.
125*eda14cbcSMatt MacyFor an overview of encryption see the
126*eda14cbcSMatt Macy.Xr zfs-load-key 8 command manual.
127*eda14cbcSMatt Macy.Sh SUBCOMMANDS
128*eda14cbcSMatt MacyAll subcommands that modify state are logged persistently to the pool in their
129*eda14cbcSMatt Macyoriginal form.
130*eda14cbcSMatt Macy.Bl -tag -width ""
131*eda14cbcSMatt Macy.It Nm Fl ?
132*eda14cbcSMatt MacyDisplays a help message.
133*eda14cbcSMatt Macy.It Xo
134*eda14cbcSMatt Macy.Nm
135*eda14cbcSMatt Macy.Fl V , -version
136*eda14cbcSMatt Macy.Xc
137*eda14cbcSMatt MacyAn alias for the
138*eda14cbcSMatt Macy.Nm zfs Cm version
139*eda14cbcSMatt Macysubcommand.
140*eda14cbcSMatt Macy.It Xo
141*eda14cbcSMatt Macy.Nm
142*eda14cbcSMatt Macy.Cm version
143*eda14cbcSMatt Macy.Xc
144*eda14cbcSMatt MacyDisplays the software version of the
145*eda14cbcSMatt Macy.Nm
146*eda14cbcSMatt Macyuserland utility and the zfs kernel module.
147*eda14cbcSMatt Macy.El
148*eda14cbcSMatt Macy.Ss Dataset Management
149*eda14cbcSMatt Macy.Bl -tag -width ""
150*eda14cbcSMatt Macy.It Xr zfs-list 8
151*eda14cbcSMatt MacyLists the property information for the given datasets in tabular form.
152*eda14cbcSMatt Macy.It Xr zfs-create 8
153*eda14cbcSMatt MacyCreates a new ZFS file system or volume.
154*eda14cbcSMatt Macy.It Xr zfs-destroy 8
155*eda14cbcSMatt MacyDestroys the given dataset(s), snapshot(s), or bookmark.
156*eda14cbcSMatt Macy.It Xr zfs-rename 8
157*eda14cbcSMatt MacyRenames the given dataset (filesystem or snapshot).
158*eda14cbcSMatt Macy.It Xr zfs-upgrade 8
159*eda14cbcSMatt MacyManage upgrading the on-disk version of filesystems.
160*eda14cbcSMatt Macy.El
161*eda14cbcSMatt Macy.Ss Snapshots
162*eda14cbcSMatt Macy.Bl -tag -width ""
163*eda14cbcSMatt Macy.It Xr zfs-snapshot 8
164*eda14cbcSMatt MacyCreates snapshots with the given names.
165*eda14cbcSMatt Macy.It Xr zfs-rollback 8
166*eda14cbcSMatt MacyRoll back the given dataset to a previous snapshot.
167*eda14cbcSMatt Macy.It Xo
168*eda14cbcSMatt Macy.Xr zfs-hold 8 /
169*eda14cbcSMatt Macy.Xr zfs-release 8
170*eda14cbcSMatt Macy.Xc
171*eda14cbcSMatt MacyAdd or remove a hold reference to the specified snapshot or snapshots.
172*eda14cbcSMatt MacyIf a hold exists on a snapshot, attempts to destroy that snapshot by using the
173*eda14cbcSMatt Macy.Nm zfs Cm destroy
174*eda14cbcSMatt Macycommand return
175*eda14cbcSMatt Macy.Er EBUSY .
176*eda14cbcSMatt Macy.It Xr zfs-diff 8
177*eda14cbcSMatt MacyDisplay the difference between a snapshot of a given filesystem and another
178*eda14cbcSMatt Macysnapshot of that filesystem from a later time or the current contents of the
179*eda14cbcSMatt Macyfilesystem.
180*eda14cbcSMatt Macy.El
181*eda14cbcSMatt Macy.Ss Clones
182*eda14cbcSMatt Macy.Bl -tag -width ""
183*eda14cbcSMatt Macy.It Xr zfs-clone 8
184*eda14cbcSMatt MacyCreates a clone of the given snapshot.
185*eda14cbcSMatt Macy.It Xr zfs-promote 8
186*eda14cbcSMatt MacyPromotes a clone file system to no longer be dependent on its
187*eda14cbcSMatt Macy.Qq origin
188*eda14cbcSMatt Macysnapshot.
189*eda14cbcSMatt Macy.El
190*eda14cbcSMatt Macy.Ss Send & Receive
191*eda14cbcSMatt Macy.Bl -tag -width ""
192*eda14cbcSMatt Macy.It Xr zfs-send 8
193*eda14cbcSMatt MacyGenerate a send stream, which may be of a filesystem, and may be incremental
194*eda14cbcSMatt Macyfrom a bookmark.
195*eda14cbcSMatt Macy.It Xr zfs-receive 8
196*eda14cbcSMatt MacyCreates a snapshot whose contents are as specified in the stream provided on
197*eda14cbcSMatt Macystandard input.
198*eda14cbcSMatt MacyIf a full stream is received, then a new file system is created as well.
199*eda14cbcSMatt MacyStreams are created using the
200*eda14cbcSMatt Macy.Xr zfs-send 8
201*eda14cbcSMatt Macysubcommand, which by default creates a full stream.
202*eda14cbcSMatt Macy.It Xr zfs-bookmark 8
203*eda14cbcSMatt MacyCreates a new bookmark of the given snapshot or bookmark.
204*eda14cbcSMatt MacyBookmarks mark the point in time when the snapshot was created, and can be used
205*eda14cbcSMatt Macyas the incremental source for a
206*eda14cbcSMatt Macy.Nm zfs Cm send
207*eda14cbcSMatt Macycommand.
208*eda14cbcSMatt Macy.It Xr zfs-redact 8
209*eda14cbcSMatt MacyGenerate a new redaction bookmark.
210*eda14cbcSMatt MacyThis feature can be used to allow clones of a filesystem to be made available on
211*eda14cbcSMatt Macya remote system, in the case where their parent need not (or needs to not) be
212*eda14cbcSMatt Macyusable.
213*eda14cbcSMatt Macy.El
214*eda14cbcSMatt Macy.Ss Properties
215*eda14cbcSMatt Macy.Bl -tag -width ""
216*eda14cbcSMatt Macy.It Xr zfs-get 8
217*eda14cbcSMatt MacyDisplays properties for the given datasets.
218*eda14cbcSMatt Macy.It Xr zfs-set 8
219*eda14cbcSMatt MacySets the property or list of properties to the given value(s) for each dataset.
220*eda14cbcSMatt Macy.It Xr zfs-inherit 8
221*eda14cbcSMatt MacyClears the specified property, causing it to be inherited from an ancestor,
222*eda14cbcSMatt Macyrestored to default if no ancestor has the property set, or with the
223*eda14cbcSMatt Macy.Fl S
224*eda14cbcSMatt Macyoption reverted to the received value if one exists.
225*eda14cbcSMatt Macy.El
226*eda14cbcSMatt Macy.Ss Quotas
227*eda14cbcSMatt Macy.Bl -tag -width ""
228*eda14cbcSMatt Macy.It Xo
229*eda14cbcSMatt Macy.Xr zfs-userspace 8 /
230*eda14cbcSMatt Macy.Xr zfs-groupspace 8 /
231*eda14cbcSMatt Macy.Xr zfs-projectspace 8
232*eda14cbcSMatt Macy.Xc
233*eda14cbcSMatt MacyDisplays space consumed by, and quotas on, each user, group, or project
234*eda14cbcSMatt Macyin the specified filesystem or snapshot.
235*eda14cbcSMatt Macy.It Xr zfs-project 8
236*eda14cbcSMatt MacyList, set, or clear project ID and/or inherit flag on the file(s) or directories.
237*eda14cbcSMatt Macy.El
238*eda14cbcSMatt Macy.Ss Mountpoints
239*eda14cbcSMatt Macy.Bl -tag -width ""
240*eda14cbcSMatt Macy.It Xr zfs-mount 8
241*eda14cbcSMatt MacyDisplays all ZFS file systems currently mounted, or mount ZFS filesystem
242*eda14cbcSMatt Macyon a path described by its
243*eda14cbcSMatt Macy.Sy mountpoint
244*eda14cbcSMatt Macyproperty.
245*eda14cbcSMatt Macy.It Xr zfs-unmount 8
246*eda14cbcSMatt MacyUnmounts currently mounted ZFS file systems.
247*eda14cbcSMatt Macy.El
248*eda14cbcSMatt Macy.Ss Shares
249*eda14cbcSMatt Macy.Bl -tag -width ""
250*eda14cbcSMatt Macy.It Xr zfs-share 8
251*eda14cbcSMatt MacyShares available ZFS file systems.
252*eda14cbcSMatt Macy.It Xr zfs-unshare 8
253*eda14cbcSMatt MacyUnshares currently shared ZFS file systems.
254*eda14cbcSMatt Macy.El
255*eda14cbcSMatt Macy.Ss Delegated Administration
256*eda14cbcSMatt Macy.Bl -tag -width ""
257*eda14cbcSMatt Macy.It Xr zfs-allow 8
258*eda14cbcSMatt MacyDelegate permissions on the specified filesystem or volume.
259*eda14cbcSMatt Macy.It Xr zfs-unallow 8
260*eda14cbcSMatt MacyRemove delegated permissions on the specified filesystem or volume.
261*eda14cbcSMatt Macy.El
262*eda14cbcSMatt Macy.Ss Encryption
263*eda14cbcSMatt Macy.Bl -tag -width ""
264*eda14cbcSMatt Macy.It Xr zfs-change-key 8
265*eda14cbcSMatt MacyAdd or change an encryption key on the specified dataset.
266*eda14cbcSMatt Macy.It Xr zfs-load-key 8
267*eda14cbcSMatt MacyLoad the key for the specified encrypted dataset, enabling access.
268*eda14cbcSMatt Macy.It Xr zfs-unload-key 8
269*eda14cbcSMatt MacyUnload a key for the specified dataset, removing the ability to access the dataset.
270*eda14cbcSMatt Macy.El
271*eda14cbcSMatt Macy.Ss Channel Programs
272*eda14cbcSMatt Macy.Bl -tag -width ""
273*eda14cbcSMatt Macy.It Xr zfs-program 8
274*eda14cbcSMatt MacyExecute ZFS administrative operations
275*eda14cbcSMatt Macyprogrammatically via a Lua script-language channel program.
276*eda14cbcSMatt Macy.El
277*eda14cbcSMatt Macy.Ss Jails
278*eda14cbcSMatt Macy.Bl -tag -width ""
279*eda14cbcSMatt Macy.It Xr zfs-jail 8
280*eda14cbcSMatt MacyAttaches a filesystem to a jail.
281*eda14cbcSMatt Macy.It Xr zfs-unjail 8
282*eda14cbcSMatt MacyDetaches a filesystem from a jail.
283*eda14cbcSMatt Macy.El
284*eda14cbcSMatt Macy.Ss Waiting
285*eda14cbcSMatt Macy.Bl -tag -width ""
286*eda14cbcSMatt Macy.It Xr zfs-wait 8
287*eda14cbcSMatt MacyWait for background activity in a filesystem to complete.
288*eda14cbcSMatt Macy.El
289*eda14cbcSMatt Macy.Sh EXIT STATUS
290*eda14cbcSMatt MacyThe
291*eda14cbcSMatt Macy.Nm
292*eda14cbcSMatt Macyutility exits 0 on success, 1 if an error occurs, and 2 if invalid command line
293*eda14cbcSMatt Macyoptions were specified.
294*eda14cbcSMatt Macy.Sh EXAMPLES
295*eda14cbcSMatt Macy.Bl -tag -width ""
296*eda14cbcSMatt Macy.It Sy Example 1 No Creating a ZFS File System Hierarchy
297*eda14cbcSMatt MacyThe following commands create a file system named
298*eda14cbcSMatt Macy.Em pool/home
299*eda14cbcSMatt Macyand a file system named
300*eda14cbcSMatt Macy.Em pool/home/bob .
301*eda14cbcSMatt MacyThe mount point
302*eda14cbcSMatt Macy.Pa /export/home
303*eda14cbcSMatt Macyis set for the parent file system, and is automatically inherited by the child
304*eda14cbcSMatt Macyfile system.
305*eda14cbcSMatt Macy.Bd -literal
306*eda14cbcSMatt Macy# zfs create pool/home
307*eda14cbcSMatt Macy# zfs set mountpoint=/export/home pool/home
308*eda14cbcSMatt Macy# zfs create pool/home/bob
309*eda14cbcSMatt Macy.Ed
310*eda14cbcSMatt Macy.It Sy Example 2 No Creating a ZFS Snapshot
311*eda14cbcSMatt MacyThe following command creates a snapshot named
312*eda14cbcSMatt Macy.Sy yesterday .
313*eda14cbcSMatt MacyThis snapshot is mounted on demand in the
314*eda14cbcSMatt Macy.Pa .zfs/snapshot
315*eda14cbcSMatt Macydirectory at the root of the
316*eda14cbcSMatt Macy.Em pool/home/bob
317*eda14cbcSMatt Macyfile system.
318*eda14cbcSMatt Macy.Bd -literal
319*eda14cbcSMatt Macy# zfs snapshot pool/home/bob@yesterday
320*eda14cbcSMatt Macy.Ed
321*eda14cbcSMatt Macy.It Sy Example 3 No Creating and Destroying Multiple Snapshots
322*eda14cbcSMatt MacyThe following command creates snapshots named
323*eda14cbcSMatt Macy.Sy yesterday
324*eda14cbcSMatt Macyof
325*eda14cbcSMatt Macy.Em pool/home
326*eda14cbcSMatt Macyand all of its descendent file systems.
327*eda14cbcSMatt MacyEach snapshot is mounted on demand in the
328*eda14cbcSMatt Macy.Pa .zfs/snapshot
329*eda14cbcSMatt Macydirectory at the root of its file system.
330*eda14cbcSMatt MacyThe second command destroys the newly created snapshots.
331*eda14cbcSMatt Macy.Bd -literal
332*eda14cbcSMatt Macy# zfs snapshot -r pool/home@yesterday
333*eda14cbcSMatt Macy# zfs destroy -r pool/home@yesterday
334*eda14cbcSMatt Macy.Ed
335*eda14cbcSMatt Macy.It Sy Example 4 No Disabling and Enabling File System Compression
336*eda14cbcSMatt MacyThe following command disables the
337*eda14cbcSMatt Macy.Sy compression
338*eda14cbcSMatt Macyproperty for all file systems under
339*eda14cbcSMatt Macy.Em pool/home .
340*eda14cbcSMatt MacyThe next command explicitly enables
341*eda14cbcSMatt Macy.Sy compression
342*eda14cbcSMatt Macyfor
343*eda14cbcSMatt Macy.Em pool/home/anne .
344*eda14cbcSMatt Macy.Bd -literal
345*eda14cbcSMatt Macy# zfs set compression=off pool/home
346*eda14cbcSMatt Macy# zfs set compression=on pool/home/anne
347*eda14cbcSMatt Macy.Ed
348*eda14cbcSMatt Macy.It Sy Example 5 No Listing ZFS Datasets
349*eda14cbcSMatt MacyThe following command lists all active file systems and volumes in the system.
350*eda14cbcSMatt MacySnapshots are displayed if the
351*eda14cbcSMatt Macy.Sy listsnaps
352*eda14cbcSMatt Macyproperty is
353*eda14cbcSMatt Macy.Sy on .
354*eda14cbcSMatt MacyThe default is
355*eda14cbcSMatt Macy.Sy off .
356*eda14cbcSMatt MacySee
357*eda14cbcSMatt Macy.Xr zpool 8
358*eda14cbcSMatt Macyfor more information on pool properties.
359*eda14cbcSMatt Macy.Bd -literal
360*eda14cbcSMatt Macy# zfs list
361*eda14cbcSMatt MacyNAME                      USED  AVAIL  REFER  MOUNTPOINT
362*eda14cbcSMatt Macypool                      450K   457G    18K  /pool
363*eda14cbcSMatt Macypool/home                 315K   457G    21K  /export/home
364*eda14cbcSMatt Macypool/home/anne             18K   457G    18K  /export/home/anne
365*eda14cbcSMatt Macypool/home/bob             276K   457G   276K  /export/home/bob
366*eda14cbcSMatt Macy.Ed
367*eda14cbcSMatt Macy.It Sy Example 6 No Setting a Quota on a ZFS File System
368*eda14cbcSMatt MacyThe following command sets a quota of 50 Gbytes for
369*eda14cbcSMatt Macy.Em pool/home/bob .
370*eda14cbcSMatt Macy.Bd -literal
371*eda14cbcSMatt Macy# zfs set quota=50G pool/home/bob
372*eda14cbcSMatt Macy.Ed
373*eda14cbcSMatt Macy.It Sy Example 7 No Listing ZFS Properties
374*eda14cbcSMatt MacyThe following command lists all properties for
375*eda14cbcSMatt Macy.Em pool/home/bob .
376*eda14cbcSMatt Macy.Bd -literal
377*eda14cbcSMatt Macy# zfs get all pool/home/bob
378*eda14cbcSMatt MacyNAME           PROPERTY              VALUE                  SOURCE
379*eda14cbcSMatt Macypool/home/bob  type                  filesystem             -
380*eda14cbcSMatt Macypool/home/bob  creation              Tue Jul 21 15:53 2009  -
381*eda14cbcSMatt Macypool/home/bob  used                  21K                    -
382*eda14cbcSMatt Macypool/home/bob  available             20.0G                  -
383*eda14cbcSMatt Macypool/home/bob  referenced            21K                    -
384*eda14cbcSMatt Macypool/home/bob  compressratio         1.00x                  -
385*eda14cbcSMatt Macypool/home/bob  mounted               yes                    -
386*eda14cbcSMatt Macypool/home/bob  quota                 20G                    local
387*eda14cbcSMatt Macypool/home/bob  reservation           none                   default
388*eda14cbcSMatt Macypool/home/bob  recordsize            128K                   default
389*eda14cbcSMatt Macypool/home/bob  mountpoint            /pool/home/bob         default
390*eda14cbcSMatt Macypool/home/bob  sharenfs              off                    default
391*eda14cbcSMatt Macypool/home/bob  checksum              on                     default
392*eda14cbcSMatt Macypool/home/bob  compression           on                     local
393*eda14cbcSMatt Macypool/home/bob  atime                 on                     default
394*eda14cbcSMatt Macypool/home/bob  devices               on                     default
395*eda14cbcSMatt Macypool/home/bob  exec                  on                     default
396*eda14cbcSMatt Macypool/home/bob  setuid                on                     default
397*eda14cbcSMatt Macypool/home/bob  readonly              off                    default
398*eda14cbcSMatt Macypool/home/bob  zoned                 off                    default
399*eda14cbcSMatt Macypool/home/bob  snapdir               hidden                 default
400*eda14cbcSMatt Macypool/home/bob  acltype               off                    default
401*eda14cbcSMatt Macypool/home/bob  aclmode               discard                default
402*eda14cbcSMatt Macypool/home/bob  aclinherit            restricted             default
403*eda14cbcSMatt Macypool/home/bob  canmount              on                     default
404*eda14cbcSMatt Macypool/home/bob  xattr                 on                     default
405*eda14cbcSMatt Macypool/home/bob  copies                1                      default
406*eda14cbcSMatt Macypool/home/bob  version               4                      -
407*eda14cbcSMatt Macypool/home/bob  utf8only              off                    -
408*eda14cbcSMatt Macypool/home/bob  normalization         none                   -
409*eda14cbcSMatt Macypool/home/bob  casesensitivity       sensitive              -
410*eda14cbcSMatt Macypool/home/bob  vscan                 off                    default
411*eda14cbcSMatt Macypool/home/bob  nbmand                off                    default
412*eda14cbcSMatt Macypool/home/bob  sharesmb              off                    default
413*eda14cbcSMatt Macypool/home/bob  refquota              none                   default
414*eda14cbcSMatt Macypool/home/bob  refreservation        none                   default
415*eda14cbcSMatt Macypool/home/bob  primarycache          all                    default
416*eda14cbcSMatt Macypool/home/bob  secondarycache        all                    default
417*eda14cbcSMatt Macypool/home/bob  usedbysnapshots       0                      -
418*eda14cbcSMatt Macypool/home/bob  usedbydataset         21K                    -
419*eda14cbcSMatt Macypool/home/bob  usedbychildren        0                      -
420*eda14cbcSMatt Macypool/home/bob  usedbyrefreservation  0                      -
421*eda14cbcSMatt Macy.Ed
422*eda14cbcSMatt Macy.Pp
423*eda14cbcSMatt MacyThe following command gets a single property value.
424*eda14cbcSMatt Macy.Bd -literal
425*eda14cbcSMatt Macy# zfs get -H -o value compression pool/home/bob
426*eda14cbcSMatt Macyon
427*eda14cbcSMatt Macy.Ed
428*eda14cbcSMatt MacyThe following command lists all properties with local settings for
429*eda14cbcSMatt Macy.Em pool/home/bob .
430*eda14cbcSMatt Macy.Bd -literal
431*eda14cbcSMatt Macy# zfs get -r -s local -o name,property,value all pool/home/bob
432*eda14cbcSMatt MacyNAME           PROPERTY              VALUE
433*eda14cbcSMatt Macypool/home/bob  quota                 20G
434*eda14cbcSMatt Macypool/home/bob  compression           on
435*eda14cbcSMatt Macy.Ed
436*eda14cbcSMatt Macy.It Sy Example 8 No Rolling Back a ZFS File System
437*eda14cbcSMatt MacyThe following command reverts the contents of
438*eda14cbcSMatt Macy.Em pool/home/anne
439*eda14cbcSMatt Macyto the snapshot named
440*eda14cbcSMatt Macy.Sy yesterday ,
441*eda14cbcSMatt Macydeleting all intermediate snapshots.
442*eda14cbcSMatt Macy.Bd -literal
443*eda14cbcSMatt Macy# zfs rollback -r pool/home/anne@yesterday
444*eda14cbcSMatt Macy.Ed
445*eda14cbcSMatt Macy.It Sy Example 9 No Creating a ZFS Clone
446*eda14cbcSMatt MacyThe following command creates a writable file system whose initial contents are
447*eda14cbcSMatt Macythe same as
448*eda14cbcSMatt Macy.Em pool/home/bob@yesterday .
449*eda14cbcSMatt Macy.Bd -literal
450*eda14cbcSMatt Macy# zfs clone pool/home/bob@yesterday pool/clone
451*eda14cbcSMatt Macy.Ed
452*eda14cbcSMatt Macy.It Sy Example 10 No Promoting a ZFS Clone
453*eda14cbcSMatt MacyThe following commands illustrate how to test out changes to a file system, and
454*eda14cbcSMatt Macythen replace the original file system with the changed one, using clones, clone
455*eda14cbcSMatt Macypromotion, and renaming:
456*eda14cbcSMatt Macy.Bd -literal
457*eda14cbcSMatt Macy# zfs create pool/project/production
458*eda14cbcSMatt Macy  populate /pool/project/production with data
459*eda14cbcSMatt Macy# zfs snapshot pool/project/production@today
460*eda14cbcSMatt Macy# zfs clone pool/project/production@today pool/project/beta
461*eda14cbcSMatt Macy  make changes to /pool/project/beta and test them
462*eda14cbcSMatt Macy# zfs promote pool/project/beta
463*eda14cbcSMatt Macy# zfs rename pool/project/production pool/project/legacy
464*eda14cbcSMatt Macy# zfs rename pool/project/beta pool/project/production
465*eda14cbcSMatt Macy  once the legacy version is no longer needed, it can be destroyed
466*eda14cbcSMatt Macy# zfs destroy pool/project/legacy
467*eda14cbcSMatt Macy.Ed
468*eda14cbcSMatt Macy.It Sy Example 11 No Inheriting ZFS Properties
469*eda14cbcSMatt MacyThe following command causes
470*eda14cbcSMatt Macy.Em pool/home/bob
471*eda14cbcSMatt Macyand
472*eda14cbcSMatt Macy.Em pool/home/anne
473*eda14cbcSMatt Macyto inherit the
474*eda14cbcSMatt Macy.Sy checksum
475*eda14cbcSMatt Macyproperty from their parent.
476*eda14cbcSMatt Macy.Bd -literal
477*eda14cbcSMatt Macy# zfs inherit checksum pool/home/bob pool/home/anne
478*eda14cbcSMatt Macy.Ed
479*eda14cbcSMatt Macy.It Sy Example 12 No Remotely Replicating ZFS Data
480*eda14cbcSMatt MacyThe following commands send a full stream and then an incremental stream to a
481*eda14cbcSMatt Macyremote machine, restoring them into
482*eda14cbcSMatt Macy.Em poolB/received/fs@a
483*eda14cbcSMatt Macyand
484*eda14cbcSMatt Macy.Em poolB/received/fs@b ,
485*eda14cbcSMatt Macyrespectively.
486*eda14cbcSMatt Macy.Em poolB
487*eda14cbcSMatt Macymust contain the file system
488*eda14cbcSMatt Macy.Em poolB/received ,
489*eda14cbcSMatt Macyand must not initially contain
490*eda14cbcSMatt Macy.Em poolB/received/fs .
491*eda14cbcSMatt Macy.Bd -literal
492*eda14cbcSMatt Macy# zfs send pool/fs@a | \e
493*eda14cbcSMatt Macy  ssh host zfs receive poolB/received/fs@a
494*eda14cbcSMatt Macy# zfs send -i a pool/fs@b | \e
495*eda14cbcSMatt Macy  ssh host zfs receive poolB/received/fs
496*eda14cbcSMatt Macy.Ed
497*eda14cbcSMatt Macy.It Sy Example 13 No Using the zfs receive -d Option
498*eda14cbcSMatt MacyThe following command sends a full stream of
499*eda14cbcSMatt Macy.Em poolA/fsA/fsB@snap
500*eda14cbcSMatt Macyto a remote machine, receiving it into
501*eda14cbcSMatt Macy.Em poolB/received/fsA/fsB@snap .
502*eda14cbcSMatt MacyThe
503*eda14cbcSMatt Macy.Em fsA/fsB@snap
504*eda14cbcSMatt Macyportion of the received snapshot's name is determined from the name of the sent
505*eda14cbcSMatt Macysnapshot.
506*eda14cbcSMatt Macy.Em poolB
507*eda14cbcSMatt Macymust contain the file system
508*eda14cbcSMatt Macy.Em poolB/received .
509*eda14cbcSMatt MacyIf
510*eda14cbcSMatt Macy.Em poolB/received/fsA
511*eda14cbcSMatt Macydoes not exist, it is created as an empty file system.
512*eda14cbcSMatt Macy.Bd -literal
513*eda14cbcSMatt Macy# zfs send poolA/fsA/fsB@snap | \e
514*eda14cbcSMatt Macy  ssh host zfs receive -d poolB/received
515*eda14cbcSMatt Macy.Ed
516*eda14cbcSMatt Macy.It Sy Example 14 No Setting User Properties
517*eda14cbcSMatt MacyThe following example sets the user-defined
518*eda14cbcSMatt Macy.Sy com.example:department
519*eda14cbcSMatt Macyproperty for a dataset.
520*eda14cbcSMatt Macy.Bd -literal
521*eda14cbcSMatt Macy# zfs set com.example:department=12345 tank/accounting
522*eda14cbcSMatt Macy.Ed
523*eda14cbcSMatt Macy.It Sy Example 15 No Performing a Rolling Snapshot
524*eda14cbcSMatt MacyThe following example shows how to maintain a history of snapshots with a
525*eda14cbcSMatt Macyconsistent naming scheme.
526*eda14cbcSMatt MacyTo keep a week's worth of snapshots, the user destroys the oldest snapshot,
527*eda14cbcSMatt Macyrenames the remaining snapshots, and then creates a new snapshot, as follows:
528*eda14cbcSMatt Macy.Bd -literal
529*eda14cbcSMatt Macy# zfs destroy -r pool/users@7daysago
530*eda14cbcSMatt Macy# zfs rename -r pool/users@6daysago @7daysago
531*eda14cbcSMatt Macy# zfs rename -r pool/users@5daysago @6daysago
532*eda14cbcSMatt Macy# zfs rename -r pool/users@4daysago @5daysago
533*eda14cbcSMatt Macy# zfs rename -r pool/users@3daysago @4daysago
534*eda14cbcSMatt Macy# zfs rename -r pool/users@2daysago @3daysago
535*eda14cbcSMatt Macy# zfs rename -r pool/users@yesterday @2daysago
536*eda14cbcSMatt Macy# zfs rename -r pool/users@today @yesterday
537*eda14cbcSMatt Macy# zfs snapshot -r pool/users@today
538*eda14cbcSMatt Macy.Ed
539*eda14cbcSMatt Macy.It Sy Example 16 No Setting sharenfs Property Options on a ZFS File System
540*eda14cbcSMatt MacyThe following commands show how to set
541*eda14cbcSMatt Macy.Sy sharenfs
542*eda14cbcSMatt Macyproperty options to enable
543*eda14cbcSMatt Macy.Sy rw
544*eda14cbcSMatt Macyaccess for a set of
545*eda14cbcSMatt Macy.Sy IP
546*eda14cbcSMatt Macyaddresses and to enable root access for system
547*eda14cbcSMatt Macy.Sy neo
548*eda14cbcSMatt Macyon the
549*eda14cbcSMatt Macy.Em tank/home
550*eda14cbcSMatt Macyfile system.
551*eda14cbcSMatt Macy.Bd -literal
552*eda14cbcSMatt Macy# zfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home
553*eda14cbcSMatt Macy.Ed
554*eda14cbcSMatt Macy.Pp
555*eda14cbcSMatt MacyIf you are using
556*eda14cbcSMatt Macy.Sy DNS
557*eda14cbcSMatt Macyfor host name resolution, specify the fully qualified hostname.
558*eda14cbcSMatt Macy.It Sy Example 17 No Delegating ZFS Administration Permissions on a ZFS Dataset
559*eda14cbcSMatt MacyThe following example shows how to set permissions so that user
560*eda14cbcSMatt Macy.Sy cindys
561*eda14cbcSMatt Macycan create, destroy, mount, and take snapshots on
562*eda14cbcSMatt Macy.Em tank/cindys .
563*eda14cbcSMatt MacyThe permissions on
564*eda14cbcSMatt Macy.Em tank/cindys
565*eda14cbcSMatt Macyare also displayed.
566*eda14cbcSMatt Macy.Bd -literal
567*eda14cbcSMatt Macy# zfs allow cindys create,destroy,mount,snapshot tank/cindys
568*eda14cbcSMatt Macy# zfs allow tank/cindys
569*eda14cbcSMatt Macy---- Permissions on tank/cindys --------------------------------------
570*eda14cbcSMatt MacyLocal+Descendent permissions:
571*eda14cbcSMatt Macy        user cindys create,destroy,mount,snapshot
572*eda14cbcSMatt Macy.Ed
573*eda14cbcSMatt Macy.Pp
574*eda14cbcSMatt MacyBecause the
575*eda14cbcSMatt Macy.Em tank/cindys
576*eda14cbcSMatt Macymount point permission is set to 755 by default, user
577*eda14cbcSMatt Macy.Sy cindys
578*eda14cbcSMatt Macywill be unable to mount file systems under
579*eda14cbcSMatt Macy.Em tank/cindys .
580*eda14cbcSMatt MacyAdd an ACE similar to the following syntax to provide mount point access:
581*eda14cbcSMatt Macy.Bd -literal
582*eda14cbcSMatt Macy# chmod A+user:cindys:add_subdirectory:allow /tank/cindys
583*eda14cbcSMatt Macy.Ed
584*eda14cbcSMatt Macy.It Sy Example 18 No Delegating Create Time Permissions on a ZFS Dataset
585*eda14cbcSMatt MacyThe following example shows how to grant anyone in the group
586*eda14cbcSMatt Macy.Sy staff
587*eda14cbcSMatt Macyto create file systems in
588*eda14cbcSMatt Macy.Em tank/users .
589*eda14cbcSMatt MacyThis syntax also allows staff members to destroy their own file systems, but not
590*eda14cbcSMatt Macydestroy anyone else's file system.
591*eda14cbcSMatt MacyThe permissions on
592*eda14cbcSMatt Macy.Em tank/users
593*eda14cbcSMatt Macyare also displayed.
594*eda14cbcSMatt Macy.Bd -literal
595*eda14cbcSMatt Macy# zfs allow staff create,mount tank/users
596*eda14cbcSMatt Macy# zfs allow -c destroy tank/users
597*eda14cbcSMatt Macy# zfs allow tank/users
598*eda14cbcSMatt Macy---- Permissions on tank/users ---------------------------------------
599*eda14cbcSMatt MacyPermission sets:
600*eda14cbcSMatt Macy        destroy
601*eda14cbcSMatt MacyLocal+Descendent permissions:
602*eda14cbcSMatt Macy        group staff create,mount
603*eda14cbcSMatt Macy.Ed
604*eda14cbcSMatt Macy.It Sy Example 19 No Defining and Granting a Permission Set on a ZFS Dataset
605*eda14cbcSMatt MacyThe following example shows how to define and grant a permission set on the
606*eda14cbcSMatt Macy.Em tank/users
607*eda14cbcSMatt Macyfile system.
608*eda14cbcSMatt MacyThe permissions on
609*eda14cbcSMatt Macy.Em tank/users
610*eda14cbcSMatt Macyare also displayed.
611*eda14cbcSMatt Macy.Bd -literal
612*eda14cbcSMatt Macy# zfs allow -s @pset create,destroy,snapshot,mount tank/users
613*eda14cbcSMatt Macy# zfs allow staff @pset tank/users
614*eda14cbcSMatt Macy# zfs allow tank/users
615*eda14cbcSMatt Macy---- Permissions on tank/users ---------------------------------------
616*eda14cbcSMatt MacyPermission sets:
617*eda14cbcSMatt Macy        @pset create,destroy,mount,snapshot
618*eda14cbcSMatt MacyLocal+Descendent permissions:
619*eda14cbcSMatt Macy        group staff @pset
620*eda14cbcSMatt Macy.Ed
621*eda14cbcSMatt Macy.It Sy Example 20 No Delegating Property Permissions on a ZFS Dataset
622*eda14cbcSMatt MacyThe following example shows to grant the ability to set quotas and reservations
623*eda14cbcSMatt Macyon the
624*eda14cbcSMatt Macy.Em users/home
625*eda14cbcSMatt Macyfile system.
626*eda14cbcSMatt MacyThe permissions on
627*eda14cbcSMatt Macy.Em users/home
628*eda14cbcSMatt Macyare also displayed.
629*eda14cbcSMatt Macy.Bd -literal
630*eda14cbcSMatt Macy# zfs allow cindys quota,reservation users/home
631*eda14cbcSMatt Macy# zfs allow users/home
632*eda14cbcSMatt Macy---- Permissions on users/home ---------------------------------------
633*eda14cbcSMatt MacyLocal+Descendent permissions:
634*eda14cbcSMatt Macy        user cindys quota,reservation
635*eda14cbcSMatt Macycindys% zfs set quota=10G users/home/marks
636*eda14cbcSMatt Macycindys% zfs get quota users/home/marks
637*eda14cbcSMatt MacyNAME              PROPERTY  VALUE  SOURCE
638*eda14cbcSMatt Macyusers/home/marks  quota     10G    local
639*eda14cbcSMatt Macy.Ed
640*eda14cbcSMatt Macy.It Sy Example 21 No Removing ZFS Delegated Permissions on a ZFS Dataset
641*eda14cbcSMatt MacyThe following example shows how to remove the snapshot permission from the
642*eda14cbcSMatt Macy.Sy staff
643*eda14cbcSMatt Macygroup on the
644*eda14cbcSMatt Macy.Em tank/users
645*eda14cbcSMatt Macyfile system.
646*eda14cbcSMatt MacyThe permissions on
647*eda14cbcSMatt Macy.Em tank/users
648*eda14cbcSMatt Macyare also displayed.
649*eda14cbcSMatt Macy.Bd -literal
650*eda14cbcSMatt Macy# zfs unallow staff snapshot tank/users
651*eda14cbcSMatt Macy# zfs allow tank/users
652*eda14cbcSMatt Macy---- Permissions on tank/users ---------------------------------------
653*eda14cbcSMatt MacyPermission sets:
654*eda14cbcSMatt Macy        @pset create,destroy,mount,snapshot
655*eda14cbcSMatt MacyLocal+Descendent permissions:
656*eda14cbcSMatt Macy        group staff @pset
657*eda14cbcSMatt Macy.Ed
658*eda14cbcSMatt Macy.It Sy Example 22 No Showing the differences between a snapshot and a ZFS Dataset
659*eda14cbcSMatt MacyThe following example shows how to see what has changed between a prior
660*eda14cbcSMatt Macysnapshot of a ZFS dataset and its current state.
661*eda14cbcSMatt MacyThe
662*eda14cbcSMatt Macy.Fl F
663*eda14cbcSMatt Macyoption is used to indicate type information for the files affected.
664*eda14cbcSMatt Macy.Bd -literal
665*eda14cbcSMatt Macy# zfs diff -F tank/test@before tank/test
666*eda14cbcSMatt MacyM       /       /tank/test/
667*eda14cbcSMatt MacyM       F       /tank/test/linked      (+1)
668*eda14cbcSMatt MacyR       F       /tank/test/oldname -> /tank/test/newname
669*eda14cbcSMatt Macy-       F       /tank/test/deleted
670*eda14cbcSMatt Macy+       F       /tank/test/created
671*eda14cbcSMatt MacyM       F       /tank/test/modified
672*eda14cbcSMatt Macy.Ed
673*eda14cbcSMatt Macy.It Sy Example 23 No Creating a bookmark
674*eda14cbcSMatt MacyThe following example create a bookmark to a snapshot.
675*eda14cbcSMatt MacyThis bookmark can then be used instead of snapshot in send streams.
676*eda14cbcSMatt Macy.Bd -literal
677*eda14cbcSMatt Macy# zfs bookmark rpool@snapshot rpool#bookmark
678*eda14cbcSMatt Macy.Ed
679*eda14cbcSMatt Macy.It Sy Example 24 No Setting sharesmb Property Options on a ZFS File System
680*eda14cbcSMatt MacyThe following example show how to share SMB filesystem through ZFS.
681*eda14cbcSMatt MacyNote that that a user and his/her password must be given.
682*eda14cbcSMatt Macy.Bd -literal
683*eda14cbcSMatt Macy# smbmount //127.0.0.1/share_tmp /mnt/tmp \\
684*eda14cbcSMatt Macy  -o user=workgroup/turbo,password=obrut,uid=1000
685*eda14cbcSMatt Macy.Ed
686*eda14cbcSMatt Macy.Pp
687*eda14cbcSMatt MacyMinimal
688*eda14cbcSMatt Macy.Em /etc/samba/smb.conf
689*eda14cbcSMatt Macyconfiguration required:
690*eda14cbcSMatt Macy.Pp
691*eda14cbcSMatt MacySamba will need to listen to 'localhost' (127.0.0.1) for the ZFS utilities to
692*eda14cbcSMatt Macycommunicate with Samba.
693*eda14cbcSMatt MacyThis is the default behavior for most Linux distributions.
694*eda14cbcSMatt Macy.Pp
695*eda14cbcSMatt MacySamba must be able to authenticate a user.
696*eda14cbcSMatt MacyThis can be done in a number of ways, depending on if using the system password file, LDAP or the Samba
697*eda14cbcSMatt Macyspecific smbpasswd file.
698*eda14cbcSMatt MacyHow to do this is outside the scope of this manual.
699*eda14cbcSMatt MacyPlease refer to the
700*eda14cbcSMatt Macy.Xr smb.conf 5
701*eda14cbcSMatt Macyman page for more information.
702*eda14cbcSMatt Macy.Pp
703*eda14cbcSMatt MacySee the
704*eda14cbcSMatt Macy.Sy USERSHARE section
705*eda14cbcSMatt Macyof the
706*eda14cbcSMatt Macy.Xr smb.conf 5
707*eda14cbcSMatt Macyman page for all configuration options in case you need to modify any options
708*eda14cbcSMatt Macyto the share afterwards.
709*eda14cbcSMatt MacyDo note that any changes done with the
710*eda14cbcSMatt Macy.Xr net 8
711*eda14cbcSMatt Macycommand will be undone if the share is ever unshared (such as at a reboot etc).
712*eda14cbcSMatt Macy.El
713*eda14cbcSMatt Macy.Sh ENVIRONMENT VARIABLES
714*eda14cbcSMatt Macy.Bl -tag -width "ZFS_MOUNT_HELPER"
715*eda14cbcSMatt Macy.It Ev ZFS_MOUNT_HELPER
716*eda14cbcSMatt MacyCause
717*eda14cbcSMatt Macy.Nm zfs mount
718*eda14cbcSMatt Macyto use
719*eda14cbcSMatt Macy.Em /bin/mount
720*eda14cbcSMatt Macyto mount zfs datasets. This option is provided for backwards compatibility with older zfs versions.
721*eda14cbcSMatt Macy.El
722*eda14cbcSMatt Macy.Sh INTERFACE STABILITY
723*eda14cbcSMatt Macy.Sy Committed .
724*eda14cbcSMatt Macy.Sh SEE ALSO
725*eda14cbcSMatt Macy.Xr attr 1 ,
726*eda14cbcSMatt Macy.Xr gzip 1 ,
727*eda14cbcSMatt Macy.Xr ssh 1 ,
728*eda14cbcSMatt Macy.Xr chmod 2 ,
729*eda14cbcSMatt Macy.Xr fsync 2 ,
730*eda14cbcSMatt Macy.Xr stat 2 ,
731*eda14cbcSMatt Macy.Xr write 2 ,
732*eda14cbcSMatt Macy.Xr acl 5 ,
733*eda14cbcSMatt Macy.Xr attributes 5 ,
734*eda14cbcSMatt Macy.Xr exports 5 ,
735*eda14cbcSMatt Macy.Xr exportfs 8 ,
736*eda14cbcSMatt Macy.Xr mount 8 ,
737*eda14cbcSMatt Macy.Xr net 8 ,
738*eda14cbcSMatt Macy.Xr selinux 8 ,
739*eda14cbcSMatt Macy.Xr zfsconcepts 8 ,
740*eda14cbcSMatt Macy.Xr zfsprops 8 ,
741*eda14cbcSMatt Macy.Xr zpool 8
742