1*61145dc2SMartin Matuska.\" SPDX-License-Identifier: CDDL-1.0 2eda14cbcSMatt Macy.\" 3eda14cbcSMatt Macy.\" CDDL HEADER START 4eda14cbcSMatt Macy.\" 5eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 6eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 7eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 8eda14cbcSMatt Macy.\" 9eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10271171e0SMartin Matuska.\" or https://opensource.org/licenses/CDDL-1.0. 11eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 12eda14cbcSMatt Macy.\" and limitations under the License. 13eda14cbcSMatt Macy.\" 14eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 15eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 17eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 18eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 19eda14cbcSMatt Macy.\" 20eda14cbcSMatt Macy.\" CDDL HEADER END 21eda14cbcSMatt Macy.\" 22eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. 23eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 24eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 26eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 27eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 28eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com] 29eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved. 30eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc. 31eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc. 32eda14cbcSMatt Macy.\" 33eda14cbcSMatt Macy.Dd June 30, 2019 34eda14cbcSMatt Macy.Dt ZFS-USERSPACE 8 35eda14cbcSMatt Macy.Os 3616038816SMartin Matuska. 37eda14cbcSMatt Macy.Sh NAME 387877fdebSMatt Macy.Nm zfs-userspace 3916038816SMartin Matuska.Nd display space and quotas of ZFS dataset 40eda14cbcSMatt Macy.Sh SYNOPSIS 417877fdebSMatt Macy.Nm zfs 42eda14cbcSMatt Macy.Cm userspace 43eda14cbcSMatt Macy.Op Fl Hinp 4416038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 4516038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 4616038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 4716038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 48c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 497877fdebSMatt Macy.Nm zfs 50eda14cbcSMatt Macy.Cm groupspace 51eda14cbcSMatt Macy.Op Fl Hinp 5216038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 5316038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 5416038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 5516038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 56c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 577877fdebSMatt Macy.Nm zfs 58eda14cbcSMatt Macy.Cm projectspace 59eda14cbcSMatt Macy.Op Fl Hp 6016038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 6116038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 6216038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 63c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 6416038816SMartin Matuska. 65eda14cbcSMatt Macy.Sh DESCRIPTION 66eda14cbcSMatt Macy.Bl -tag -width "" 67eda14cbcSMatt Macy.It Xo 687877fdebSMatt Macy.Nm zfs 69eda14cbcSMatt Macy.Cm userspace 70eda14cbcSMatt Macy.Op Fl Hinp 7116038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 7216038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 7316038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 7416038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 75c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 76eda14cbcSMatt Macy.Xc 77bb2d13b6SMartin MatuskaDisplays space consumed by, and quotas on, each user in the specified 78bb2d13b6SMartin Matuskafilesystem, 79c40487d4SMatt Macysnapshot, or path. 80c40487d4SMatt MacyIf a path is given, the filesystem that contains that path will be used. 81eda14cbcSMatt MacyThis corresponds to the 82eda14cbcSMatt Macy.Sy userused@ Ns Em user , 83eda14cbcSMatt Macy.Sy userobjused@ Ns Em user , 84eda14cbcSMatt Macy.Sy userquota@ Ns Em user , 85eda14cbcSMatt Macyand 86eda14cbcSMatt Macy.Sy userobjquota@ Ns Em user 87eda14cbcSMatt Macyproperties. 8816038816SMartin Matuska.Bl -tag -width "-S field" 89eda14cbcSMatt Macy.It Fl H 90eda14cbcSMatt MacyDo not print headers, use tab-delimited output. 91eda14cbcSMatt Macy.It Fl S Ar field 92eda14cbcSMatt MacySort by this field in reverse order. 93eda14cbcSMatt MacySee 94eda14cbcSMatt Macy.Fl s . 95eda14cbcSMatt Macy.It Fl i 96eda14cbcSMatt MacyTranslate SID to POSIX ID. 97eda14cbcSMatt MacyThe POSIX ID may be ephemeral if no mapping exists. 98eda14cbcSMatt MacyNormal POSIX interfaces 9916038816SMartin Matuska.Pq like Xr stat 2 , Nm ls Fl l 100eda14cbcSMatt Macyperform this translation, so the 101eda14cbcSMatt Macy.Fl i 102eda14cbcSMatt Macyoption allows the output from 103eda14cbcSMatt Macy.Nm zfs Cm userspace 104eda14cbcSMatt Macyto be compared directly with those utilities. 105eda14cbcSMatt MacyHowever, 106eda14cbcSMatt Macy.Fl i 107eda14cbcSMatt Macymay lead to confusion if some files were created by an SMB user before a 108eda14cbcSMatt MacySMB-to-POSIX name mapping was established. 109eda14cbcSMatt MacyIn such a case, some files will be owned by the SMB entity and some by the POSIX 110eda14cbcSMatt Macyentity. 111eda14cbcSMatt MacyHowever, the 112eda14cbcSMatt Macy.Fl i 113eda14cbcSMatt Macyoption will report that the POSIX entity has the total usage and quota for both. 114eda14cbcSMatt Macy.It Fl n 115eda14cbcSMatt MacyPrint numeric ID instead of user/group name. 11616038816SMartin Matuska.It Fl o Ar field Ns Oo , Ns Ar field Oc Ns … 117eda14cbcSMatt MacyDisplay only the specified fields from the following set: 118eda14cbcSMatt Macy.Sy type , 119eda14cbcSMatt Macy.Sy name , 120eda14cbcSMatt Macy.Sy used , 121eda14cbcSMatt Macy.Sy quota . 122eda14cbcSMatt MacyThe default is to display all fields. 123eda14cbcSMatt Macy.It Fl p 124eda14cbcSMatt MacyUse exact 125eda14cbcSMatt Macy.Pq parsable 126eda14cbcSMatt Macynumeric output. 127eda14cbcSMatt Macy.It Fl s Ar field 128eda14cbcSMatt MacySort output by this field. 129eda14cbcSMatt MacyThe 130eda14cbcSMatt Macy.Fl s 131eda14cbcSMatt Macyand 132eda14cbcSMatt Macy.Fl S 133eda14cbcSMatt Macyflags may be specified multiple times to sort first by one field, then by 134eda14cbcSMatt Macyanother. 135eda14cbcSMatt MacyThe default is 136eda14cbcSMatt Macy.Fl s Sy type Fl s Sy name . 13716038816SMartin Matuska.It Fl t Ar type Ns Oo , Ns Ar type Oc Ns … 138eda14cbcSMatt MacyPrint only the specified types from the following set: 139eda14cbcSMatt Macy.Sy all , 140eda14cbcSMatt Macy.Sy posixuser , 141eda14cbcSMatt Macy.Sy smbuser , 142eda14cbcSMatt Macy.Sy posixgroup , 143eda14cbcSMatt Macy.Sy smbgroup . 144eda14cbcSMatt MacyThe default is 14516038816SMartin Matuska.Fl t Sy posixuser , Ns Sy smbuser . 146eda14cbcSMatt MacyThe default can be changed to include group types. 147eda14cbcSMatt Macy.El 148eda14cbcSMatt Macy.It Xo 1497877fdebSMatt Macy.Nm zfs 150eda14cbcSMatt Macy.Cm groupspace 151eda14cbcSMatt Macy.Op Fl Hinp 15216038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 15316038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 15416038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 15516038816SMartin Matuska.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc 156eda14cbcSMatt Macy.Ar filesystem Ns | Ns Ar snapshot 157eda14cbcSMatt Macy.Xc 158eda14cbcSMatt MacyDisplays space consumed by, and quotas on, each group in the specified 159eda14cbcSMatt Macyfilesystem or snapshot. 160eda14cbcSMatt MacyThis subcommand is identical to 161eda14cbcSMatt Macy.Cm userspace , 162eda14cbcSMatt Macyexcept that the default types to display are 16316038816SMartin Matuska.Fl t Sy posixgroup , Ns Sy smbgroup . 164eda14cbcSMatt Macy.It Xo 1657877fdebSMatt Macy.Nm zfs 166eda14cbcSMatt Macy.Cm projectspace 167eda14cbcSMatt Macy.Op Fl Hp 16816038816SMartin Matuska.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc 16916038816SMartin Matuska.Oo Fl s Ar field Oc Ns … 17016038816SMartin Matuska.Oo Fl S Ar field Oc Ns … 171c40487d4SMatt Macy.Ar filesystem Ns | Ns Ar snapshot Ns | Ns Ar path 172eda14cbcSMatt Macy.Xc 173eda14cbcSMatt MacyDisplays space consumed by, and quotas on, each project in the specified 17416038816SMartin Matuskafilesystem or snapshot. 17516038816SMartin MatuskaThis subcommand is identical to 176eda14cbcSMatt Macy.Cm userspace , 17716038816SMartin Matuskaexcept that the project identifier is a numeral, not a name. 17816038816SMartin MatuskaSo need neither the option 17916038816SMartin Matuska.Fl i 180eda14cbcSMatt Macyfor SID to POSIX ID nor 18116038816SMartin Matuska.Fl n 182eda14cbcSMatt Macyfor numeric ID, nor 18316038816SMartin Matuska.Fl t 184eda14cbcSMatt Macyfor types. 185eda14cbcSMatt Macy.El 18616038816SMartin Matuska. 187eda14cbcSMatt Macy.Sh SEE ALSO 1883ff01b23SMartin Matuska.Xr zfsprops 7 , 1893ff01b23SMartin Matuska.Xr zfs-set 8 190