xref: /freebsd-src/sys/contrib/openzfs/man/man8/zfs-project.8 (revision bb2d13b686e3ccf6c3ccb36209dfb7dcc108b182)
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.\"
3216038816SMartin Matuska.Dd May 27, 2021
33eda14cbcSMatt Macy.Dt ZFS-PROJECT 8
34eda14cbcSMatt Macy.Os
3516038816SMartin Matuska.
36eda14cbcSMatt Macy.Sh NAME
377877fdebSMatt Macy.Nm zfs-project
3816038816SMartin Matuska.Nd manage projects in ZFS filesystem
39eda14cbcSMatt Macy.Sh SYNOPSIS
407877fdebSMatt Macy.Nm zfs
41eda14cbcSMatt Macy.Cm project
42eda14cbcSMatt Macy.Oo Fl d Ns | Ns Fl r Ns Oc
4316038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
447877fdebSMatt Macy.Nm zfs
45eda14cbcSMatt Macy.Cm project
46eda14cbcSMatt Macy.Fl C
47eda14cbcSMatt Macy.Oo Fl kr Ns Oc
4816038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
497877fdebSMatt Macy.Nm zfs
50eda14cbcSMatt Macy.Cm project
51eda14cbcSMatt Macy.Fl c
52eda14cbcSMatt Macy.Oo Fl 0 Ns Oc
53eda14cbcSMatt Macy.Oo Fl d Ns | Ns Fl r Ns Oc
54eda14cbcSMatt Macy.Op Fl p Ar id
5516038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
567877fdebSMatt Macy.Nm zfs
57eda14cbcSMatt Macy.Cm project
58eda14cbcSMatt Macy.Op Fl p Ar id
59eda14cbcSMatt Macy.Oo Fl rs Ns Oc
6016038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
6116038816SMartin Matuska.
62eda14cbcSMatt Macy.Sh DESCRIPTION
63eda14cbcSMatt Macy.Bl -tag -width ""
64eda14cbcSMatt Macy.It Xo
657877fdebSMatt Macy.Nm zfs
66eda14cbcSMatt Macy.Cm project
67eda14cbcSMatt Macy.Oo Fl d Ns | Ns Fl r Ns Oc
6816038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
69eda14cbcSMatt Macy.Xc
7016038816SMartin MatuskaList project identifier (ID) and inherit flag of files and directories.
71eda14cbcSMatt Macy.Bl -tag -width "-d"
72eda14cbcSMatt Macy.It Fl d
7316038816SMartin MatuskaShow the directory project ID and inherit flag, not its children.
74eda14cbcSMatt Macy.It Fl r
7516038816SMartin MatuskaList subdirectories recursively.
76eda14cbcSMatt Macy.El
77eda14cbcSMatt Macy.It Xo
787877fdebSMatt Macy.Nm zfs
79eda14cbcSMatt Macy.Cm project
80eda14cbcSMatt Macy.Fl C
81eda14cbcSMatt Macy.Oo Fl kr Ns Oc
8216038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
83eda14cbcSMatt Macy.Xc
8416038816SMartin MatuskaClear project inherit flag and/or ID on the files and directories.
85eda14cbcSMatt Macy.Bl -tag -width "-k"
86eda14cbcSMatt Macy.It Fl k
8716038816SMartin MatuskaKeep the project ID unchanged.
8816038816SMartin MatuskaIf not specified, the project ID will be reset to zero.
89eda14cbcSMatt Macy.It Fl r
9016038816SMartin MatuskaClear subdirectories' flags recursively.
91eda14cbcSMatt Macy.El
92eda14cbcSMatt Macy.It Xo
937877fdebSMatt Macy.Nm zfs
94eda14cbcSMatt Macy.Cm project
95eda14cbcSMatt Macy.Fl c
96eda14cbcSMatt Macy.Oo Fl 0 Ns Oc
97eda14cbcSMatt Macy.Oo Fl d Ns | Ns Fl r Ns Oc
98eda14cbcSMatt Macy.Op Fl p Ar id
9916038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
100eda14cbcSMatt Macy.Xc
10116038816SMartin MatuskaCheck project ID and inherit flag on the files and directories:
102*bb2d13b6SMartin Matuskareport entries without the project inherit flag, or with project IDs different
103*bb2d13b6SMartin Matuskafrom the
10416038816SMartin Matuskatarget directory's project ID or the one specified with
10516038816SMartin Matuska.Fl p .
10616038816SMartin Matuska.Bl -tag -width "-p id"
107eda14cbcSMatt Macy.It Fl 0
108c03c5b1cSMartin MatuskaDelimit filenames with a NUL byte instead of newline, don't output diagnoses.
109eda14cbcSMatt Macy.It Fl d
11016038816SMartin MatuskaCheck the directory project ID and inherit flag, not its children.
11116038816SMartin Matuska.It Fl p Ar id
11216038816SMartin MatuskaCompare to
11316038816SMartin Matuska.Ar id
11416038816SMartin Matuskainstead of the target files and directories' project IDs.
115eda14cbcSMatt Macy.It Fl r
11616038816SMartin MatuskaCheck subdirectories recursively.
117eda14cbcSMatt Macy.El
118eda14cbcSMatt Macy.It Xo
1197877fdebSMatt Macy.Nm zfs
120eda14cbcSMatt Macy.Cm project
12116038816SMartin Matuska.Fl p Ar id
122eda14cbcSMatt Macy.Oo Fl rs Ns Oc
12316038816SMartin Matuska.Ar file Ns | Ns Ar directory Ns …
124eda14cbcSMatt Macy.Xc
12516038816SMartin MatuskaSet project ID and/or inherit flag on the files and directories.
12616038816SMartin Matuska.Bl -tag -width "-p id"
12716038816SMartin Matuska.It Fl p Ar id
12816038816SMartin MatuskaSet the project ID to the given value.
129eda14cbcSMatt Macy.It Fl r
130eda14cbcSMatt MacySet on subdirectories recursively.
131eda14cbcSMatt Macy.It Fl s
13216038816SMartin MatuskaSet project inherit flag on the given files and directories.
13316038816SMartin MatuskaThis is usually used for setting up tree quotas with
13416038816SMartin Matuska.Fl r .
13516038816SMartin MatuskaIn that case, the directory's project ID
13616038816SMartin Matuskawill be set for all its descendants, unless specified explicitly with
13716038816SMartin Matuska.Fl p .
138eda14cbcSMatt Macy.El
139eda14cbcSMatt Macy.El
14016038816SMartin Matuska.
141eda14cbcSMatt Macy.Sh SEE ALSO
142eda14cbcSMatt Macy.Xr zfs-projectspace 8
143