1eda14cbcSMatt Macy.\" 2eda14cbcSMatt Macy.\" CDDL HEADER START 3eda14cbcSMatt Macy.\" 4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 7eda14cbcSMatt Macy.\" 8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0. 10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 11eda14cbcSMatt Macy.\" and limitations under the License. 12eda14cbcSMatt Macy.\" 13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 18eda14cbcSMatt Macy.\" 19eda14cbcSMatt Macy.\" CDDL HEADER END 20eda14cbcSMatt Macy.\" 21eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. 22eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 23eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 24eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 26eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 27eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com] 28eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved. 29eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc. 30eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc. 31eda14cbcSMatt Macy.\" 32eda14cbcSMatt Macy.Dd June 30, 2019 33eda14cbcSMatt Macy.Dt ZFS-USERSPACE 8 34eda14cbcSMatt Macy.Os 3516038816SMartin Matuska. 36eda14cbcSMatt Macy.Sh NAME 377877fdebSMatt Macy.Nm zfs-userspace 3816038816SMartin Matuska.Nd display space and quotas of ZFS dataset 39eda14cbcSMatt Macy.Sh SYNOPSIS 407877fdebSMatt Macy.Nm zfs 41eda14cbcSMatt Macy.Cm userspace 42eda14cbcSMatt Macy.Op Fl Hinp 4316038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 4416038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 4516038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 4616038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 47c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 487877fdebSMatt Macy.Nm zfs 49eda14cbcSMatt Macy.Cm groupspace 50eda14cbcSMatt Macy.Op Fl Hinp 5116038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 5216038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 5316038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 5416038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 55c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 567877fdebSMatt Macy.Nm zfs 57eda14cbcSMatt Macy.Cm projectspace 58eda14cbcSMatt Macy.Op Fl Hp 5916038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 6016038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 6116038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 62c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 6316038816SMartin Matuska. 64eda14cbcSMatt Macy.Sh DESCRIPTION 65eda14cbcSMatt Macy.Bl -tag -width "" 66eda14cbcSMatt Macy.It Xo 677877fdebSMatt Macy.Nm zfs 68eda14cbcSMatt Macy.Cm userspace 69eda14cbcSMatt Macy.Op Fl Hinp 7016038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 7116038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 7216038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 7316038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 74c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 75eda14cbcSMatt Macy.Xc 76*bb2d13b6SMartin MatuskaDisplays space consumed by, and quotas on, each user in the specified 77*bb2d13b6SMartin Matuskafilesystem, 78c40487d4SMatt Macysnapshot, or path. 79c40487d4SMatt MacyIf a path is given, the filesystem that contains that path will be used. 80eda14cbcSMatt MacyThis corresponds to the 81eda14cbcSMatt Macy.Sy userused@ Ns Em user , 82eda14cbcSMatt Macy.Sy userobjused@ Ns Em user , 83eda14cbcSMatt Macy.Sy userquota@ Ns Em user , 84eda14cbcSMatt Macyand 85eda14cbcSMatt Macy.Sy userobjquota@ Ns Em user 86eda14cbcSMatt Macyproperties. 8716038816SMartin Matuska.Bl -tag -width "-S field" 88eda14cbcSMatt Macy.It Fl H 89eda14cbcSMatt MacyDo not print headers, use tab-delimited output. 90eda14cbcSMatt Macy.It Fl S Ar field 91eda14cbcSMatt MacySort by this field in reverse order. 92eda14cbcSMatt MacySee 93eda14cbcSMatt Macy.Fl s . 94eda14cbcSMatt Macy.It Fl i 95eda14cbcSMatt MacyTranslate SID to POSIX ID. 96eda14cbcSMatt MacyThe POSIX ID may be ephemeral if no mapping exists. 97eda14cbcSMatt MacyNormal POSIX interfaces 9816038816SMartin Matuska.Pq like Xr stat 2 , Nm ls Fl l 99eda14cbcSMatt Macyperform this translation, so the 100eda14cbcSMatt Macy.Fl i 101eda14cbcSMatt Macyoption allows the output from 102eda14cbcSMatt Macy.Nm zfs Cm userspace 103eda14cbcSMatt Macyto be compared directly with those utilities. 104eda14cbcSMatt MacyHowever, 105eda14cbcSMatt Macy.Fl i 106eda14cbcSMatt Macymay lead to confusion if some files were created by an SMB user before a 107eda14cbcSMatt MacySMB-to-POSIX name mapping was established. 108eda14cbcSMatt MacyIn such a case, some files will be owned by the SMB entity and some by the POSIX 109eda14cbcSMatt Macyentity. 110eda14cbcSMatt MacyHowever, the 111eda14cbcSMatt Macy.Fl i 112eda14cbcSMatt Macyoption will report that the POSIX entity has the total usage and quota for both. 113eda14cbcSMatt Macy.It Fl n 114eda14cbcSMatt MacyPrint numeric ID instead of user/group name. 11516038816SMartin Matuska.It Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 116eda14cbcSMatt MacyDisplay only the specified fields from the following set: 117eda14cbcSMatt Macy.Sy type , 118eda14cbcSMatt Macy.Sy name , 119eda14cbcSMatt Macy.Sy used , 120eda14cbcSMatt Macy.Sy quota . 121eda14cbcSMatt MacyThe default is to display all fields. 122eda14cbcSMatt Macy.It Fl p 123eda14cbcSMatt MacyUse exact 124eda14cbcSMatt Macy.Pq parsable 125eda14cbcSMatt Macynumeric output. 126eda14cbcSMatt Macy.It Fl s Ar field 127eda14cbcSMatt MacySort output by this field. 128eda14cbcSMatt MacyThe 129eda14cbcSMatt Macy.Fl s 130eda14cbcSMatt Macyand 131eda14cbcSMatt Macy.Fl S 132eda14cbcSMatt Macyflags may be specified multiple times to sort first by one field, then by 133eda14cbcSMatt Macyanother. 134eda14cbcSMatt MacyThe default is 135eda14cbcSMatt Macy.Fl s Sy type Fl s Sy name . 13616038816SMartin Matuska.It Fl t Ar type Ns Oo , Ns Ar type Oc Ns … 137eda14cbcSMatt MacyPrint only the specified types from the following set: 138eda14cbcSMatt Macy.Sy all , 139eda14cbcSMatt Macy.Sy posixuser , 140eda14cbcSMatt Macy.Sy smbuser , 141eda14cbcSMatt Macy.Sy posixgroup , 142eda14cbcSMatt Macy.Sy smbgroup . 143eda14cbcSMatt MacyThe default is 14416038816SMartin Matuska.Fl t Sy posixuser , Ns Sy smbuser . 145eda14cbcSMatt MacyThe default can be changed to include group types. 146eda14cbcSMatt Macy.El 147eda14cbcSMatt Macy.It Xo 1487877fdebSMatt Macy.Nm zfs 149eda14cbcSMatt Macy.Cm groupspace 150eda14cbcSMatt Macy.Op Fl Hinp 15116038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 15216038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 15316038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 15416038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 155eda14cbcSMatt Macy.Ar filesystem Ns | Ns Ar snapshot 156eda14cbcSMatt Macy.Xc 157eda14cbcSMatt MacyDisplays space consumed by, and quotas on, each group in the specified 158eda14cbcSMatt Macyfilesystem or snapshot. 159eda14cbcSMatt MacyThis subcommand is identical to 160eda14cbcSMatt Macy.Cm userspace , 161eda14cbcSMatt Macyexcept that the default types to display are 16216038816SMartin Matuska.Fl t Sy posixgroup , Ns Sy smbgroup . 163eda14cbcSMatt Macy.It Xo 1647877fdebSMatt Macy.Nm zfs 165eda14cbcSMatt Macy.Cm projectspace 166eda14cbcSMatt Macy.Op Fl Hp 16716038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 16816038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 16916038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 170c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 171eda14cbcSMatt Macy.Xc 172eda14cbcSMatt MacyDisplays space consumed by, and quotas on, each project in the specified 17316038816SMartin Matuskafilesystem or snapshot. 17416038816SMartin MatuskaThis subcommand is identical to 175eda14cbcSMatt Macy.Cm userspace , 17616038816SMartin Matuskaexcept that the project identifier is a numeral, not a name. 17716038816SMartin MatuskaSo need neither the option 17816038816SMartin Matuska.Fl i 179eda14cbcSMatt Macyfor SID to POSIX ID nor 18016038816SMartin Matuska.Fl n 181eda14cbcSMatt Macyfor numeric ID, nor 18216038816SMartin Matuska.Fl t 183eda14cbcSMatt Macyfor types. 184eda14cbcSMatt Macy.El 18516038816SMartin Matuska. 186eda14cbcSMatt Macy.Sh SEE ALSO 1873ff01b23SMartin Matuska.Xr zfsprops 7 , 1883ff01b23SMartin Matuska.Xr zfs-set 8 189