Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/sys/contrib/openzfs/cmd/zfs/zfs_projectutil.h
48287 views
1
// SPDX-License-Identifier: CDDL-1.0
2
/*
3
* CDDL HEADER START
4
*
5
* The contents of this file are subject to the terms of the
6
* Common Development and Distribution License (the "License").
7
* You may not use this file except in compliance with the License.
8
*
9
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10
* or https://opensource.org/licenses/CDDL-1.0.
11
* See the License for the specific language governing permissions
12
* and limitations under the License.
13
*
14
* When distributing Covered Code, include this CDDL HEADER in each
15
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16
* If applicable, add the following below this CDDL HEADER, with the
17
* fields enclosed by brackets "[]" replaced with your own identifying
18
* information: Portions Copyright [yyyy] [name of copyright owner]
19
*
20
* CDDL HEADER END
21
*/
22
/*
23
* Copyright (c) 2017, Intel Corporation. All rights reserved.
24
*/
25
26
#ifndef _ZFS_PROJECTUTIL_H
27
#define _ZFS_PROJECTUTIL_H
28
29
typedef enum {
30
ZFS_PROJECT_OP_DEFAULT = 0,
31
ZFS_PROJECT_OP_LIST = 1,
32
ZFS_PROJECT_OP_CHECK = 2,
33
ZFS_PROJECT_OP_CLEAR = 3,
34
ZFS_PROJECT_OP_SET = 4,
35
} zfs_project_ops_t;
36
37
typedef struct zfs_project_control {
38
uint64_t zpc_expected_projid;
39
zfs_project_ops_t zpc_op;
40
boolean_t zpc_dironly;
41
boolean_t zpc_ignore_noent;
42
boolean_t zpc_keep_projid;
43
boolean_t zpc_newline;
44
boolean_t zpc_recursive;
45
boolean_t zpc_set_flag;
46
} zfs_project_control_t;
47
48
int zfs_project_handle(const char *name, zfs_project_control_t *zpc);
49
50
#endif /* _ZFS_PROJECTUTIL_H */
51
52