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 display space and quotas of ZFS dataset
43 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
44 .Oo Fl s Ar field Oc Ns …
45 .Oo Fl S Ar field Oc Ns …
46 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
47 .Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path
51 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
52 .Oo Fl s Ar field Oc Ns …
53 .Oo Fl S Ar field Oc Ns …
54 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
55 .Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path
59 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
60 .Oo Fl s Ar field Oc Ns …
61 .Oo Fl S Ar field Oc Ns …
62 .Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path
70 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
71 .Oo Fl s Ar field Oc Ns …
72 .Oo Fl S Ar field Oc Ns …
73 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
74 .Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path
76 Displays space consumed by, and quotas on, each user in the specified filesystem,
78 If a path is given, the filesystem that contains that path will be used.
79 This corresponds to the
80 .Sy userused@ Ns Em user ,
81 .Sy userobjused@ Ns Em user ,
82 .Sy userquota@ Ns Em user ,
84 .Sy userobjquota@ Ns Em user
86 .Bl -tag -width "-S field"
88 Do not print headers, use tab-delimited output.
90 Sort by this field in reverse order.
94 Translate SID to POSIX ID.
95 The POSIX ID may be ephemeral if no mapping exists.
96 Normal POSIX interfaces
97 .Pq like Xr stat 2 , Nm ls Fl l
98 perform this translation, so the
100 option allows the output from
102 to be compared directly with those utilities.
105 may lead to confusion if some files were created by an SMB user before a
106 SMB-to-POSIX name mapping was established.
107 In such a case, some files will be owned by the SMB entity and some by the POSIX
111 option will report that the POSIX entity has the total usage and quota for both.
113 Print numeric ID instead of user/group name.
114 .It Fl o Ar field Ns Oo , Ns Ar field Oc Ns …
115 Display only the specified fields from the following set:
120 The default is to display all fields.
126 Sort output by this field.
131 flags may be specified multiple times to sort first by one field, then by
134 .Fl s Sy type Fl s Sy name .
135 .It Fl t Ar type Ns Oo , Ns Ar type Oc Ns …
136 Print only the specified types from the following set:
143 .Fl t Sy posixuser , Ns Sy smbuser .
144 The default can be changed to include group types.
150 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
151 .Oo Fl s Ar field Oc Ns …
152 .Oo Fl S Ar field Oc Ns …
153 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
154 .Ar filesystem Ns | Ns Ar snapshot
156 Displays space consumed by, and quotas on, each group in the specified
157 filesystem or snapshot.
158 This subcommand is identical to
160 except that the default types to display are
161 .Fl t Sy posixgroup , Ns Sy smbgroup .
166 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
167 .Oo Fl s Ar field Oc Ns …
168 .Oo Fl S Ar field Oc Ns …
169 .Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path
171 Displays space consumed by, and quotas on, each project in the specified
172 filesystem or snapshot.
173 This subcommand is identical to
175 except that the project identifier is a numeral, not a name.
176 So need neither the option
178 for SID to POSIX ID nor