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 manage projects in ZFS filesystem
42 .Oo Fl d Ns | Ns Fl r Ns Oc
43 .Ar file Ns | Ns Ar directory Ns …
48 .Ar file Ns | Ns Ar directory Ns …
53 .Oo Fl d Ns | Ns Fl r Ns Oc
55 .Ar file Ns | Ns Ar directory Ns …
60 .Ar file Ns | Ns Ar directory Ns …
67 .Oo Fl d Ns | Ns Fl r Ns Oc
68 .Ar file Ns | Ns Ar directory Ns …
70 List project identifier (ID) and inherit flag of files and directories.
73 Show the directory project ID and inherit flag, not its children.
75 List subdirectories recursively.
82 .Ar file Ns | Ns Ar directory Ns …
84 Clear project inherit flag and/or ID on the files and directories.
87 Keep the project ID unchanged.
88 If not specified, the project ID will be reset to zero.
90 Clear subdirectories' flags recursively.
97 .Oo Fl d Ns | Ns Fl r Ns Oc
99 .Ar file Ns | Ns Ar directory Ns …
101 Check project ID and inherit flag on the files and directories:
102 report entries without the project inherit flag, or with project IDs different
104 target directory's project ID or the one specified with
106 .Bl -tag -width "-p id"
108 Delimit filenames with a NUL byte instead of newline, don't output diagnoses.
110 Check the directory project ID and inherit flag, not its children.
114 instead of the target files and directories' project IDs.
116 Check subdirectories recursively.
123 .Ar file Ns | Ns Ar directory Ns …
125 Set project ID and/or inherit flag on the files and directories.
126 .Bl -tag -width "-p id"
128 Set the project ID to the given value.
130 Set on subdirectories recursively.
132 Set project inherit flag on the given files and directories.
133 This is usually used for setting up tree quotas with
135 In that case, the directory's project ID
136 will be set for all its descendants, unless specified explicitly with
142 .Xr zfs-projectspace 8