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 https://opensource.org/licenses/CDDL-1.0.
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
79 If a path is given, the filesystem that contains that path will be used.
80 This corresponds to the
81 .Sy userused@ Ns Em user ,
82 .Sy userobjused@ Ns Em user ,
83 .Sy userquota@ Ns Em user ,
85 .Sy userobjquota@ Ns Em user
87 .Bl -tag -width "-S field"
89 Do not print headers, use tab-delimited output.
91 Sort by this field in reverse order.
95 Translate SID to POSIX ID.
96 The POSIX ID may be ephemeral if no mapping exists.
97 Normal POSIX interfaces
98 .Pq like Xr stat 2 , Nm ls Fl l
99 perform this translation, so the
101 option allows the output from
103 to be compared directly with those utilities.
106 may lead to confusion if some files were created by an SMB user before a
107 SMB-to-POSIX name mapping was established.
108 In such a case, some files will be owned by the SMB entity and some by the POSIX
112 option will report that the POSIX entity has the total usage and quota for both.
114 Print numeric ID instead of user/group name.
115 .It Fl o Ar field Ns Oo , Ns Ar field Oc Ns …
116 Display only the specified fields from the following set:
121 The default is to display all fields.
127 Sort output by this field.
132 flags may be specified multiple times to sort first by one field, then by
135 .Fl s Sy type Fl s Sy name .
136 .It Fl t Ar type Ns Oo , Ns Ar type Oc Ns …
137 Print only the specified types from the following set:
144 .Fl t Sy posixuser , Ns Sy smbuser .
145 The default can be changed to include group types.
151 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
152 .Oo Fl s Ar field Oc Ns …
153 .Oo Fl S Ar field Oc Ns …
154 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
155 .Ar filesystem Ns | Ns Ar snapshot
157 Displays space consumed by, and quotas on, each group in the specified
158 filesystem or snapshot.
159 This subcommand is identical to
161 except that the default types to display are
162 .Fl t Sy posixgroup , Ns Sy smbgroup .
167 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
168 .Oo Fl s Ar field Oc Ns …
169 .Oo Fl S Ar field Oc Ns …
170 .Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path
172 Displays space consumed by, and quotas on, each project in the specified
173 filesystem or snapshot.
174 This subcommand is identical to
176 except that the project identifier is a numeral, not a name.
177 So need neither the option
179 for SID to POSIX ID nor