xref: /freebsd/sys/contrib/openzfs/lib/libspl/include/sys/vnode.h (revision 8ccc0d235c226d84112561d453c49904398d085c)
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, Version 1.0 only
7  * (the "License").  You may not use this file except in compliance
8  * with the License.
9  *
10  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11  * or https://opensource.org/licenses/CDDL-1.0.
12  * See the License for the specific language governing permissions
13  * and limitations under the License.
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17  * If applicable, add the following below this CDDL HEADER, with the
18  * fields enclosed by brackets "[]" replaced with your own identifying
19  * information: Portions Copyright [yyyy] [name of copyright owner]
20  *
21  * CDDL HEADER END
22  */
23 /*
24  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  */
27 
28 #ifndef _SYS_VNODE_H
29 #define	_SYS_VNODE_H
30 
31 typedef struct vattr {
32 	uint_t		va_mask;	/* bit-mask of attributes */
33 	u_offset_t	va_size;	/* file size in bytes */
34 } vattr_t;
35 
36 #define	AT_MODE		0x00002
37 #define	AT_UID		0x00004
38 #define	AT_GID		0x00008
39 #define	AT_FSID		0x00010
40 #define	AT_NODEID	0x00020
41 #define	AT_NLINK	0x00040
42 #define	AT_SIZE		0x00080
43 #define	AT_ATIME	0x00100
44 #define	AT_MTIME	0x00200
45 #define	AT_CTIME	0x00400
46 #define	AT_RDEV		0x00800
47 #define	AT_BLKSIZE	0x01000
48 #define	AT_NBLOCKS	0x02000
49 #define	AT_SEQ		0x08000
50 #define	AT_XVATTR	0x10000
51 
52 #define	ATTR_XVATTR	AT_XVATTR
53 
54 #define	CRCREAT		0
55 
56 #define	F_FREESP	11
57 #define	FIGNORECASE	0x80000 /* request case-insensitive lookups */
58 
59 
60 #endif /* _SYS_VNODE_H */
61