-
Notifications
You must be signed in to change notification settings - Fork 3
/
attributes.linux
121 lines (111 loc) · 4.28 KB
/
attributes.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# /etc/rawhide.conf.d/attributes (Linux)
# See rh(1) and rawhide.conf(5) for more information.
/*
This file defines aliases for the built-in symbols for the
Linux ext2-style file attributes, and the related constants
and predicates. See <e2p/e2p.h> and <ext2fs/ext2_fs.h>.
*/
// Aliases for the Linux ext2-style attribute built-ins
flag { attr }
flags { attr }
attrs { attr }
attribute { attr }
attributes { attr }
project { proj }
generation { gen }
// Attribute constants from <ext2fs/ext2_fs.h>
ATTR_SECRM { 0x00000001 } # Secure deletion
ATTR_UNRM { 0x00000002 } # Undelete
ATTR_COMPR { 0x00000004 } # Compress file
ATTR_SYNC { 0x00000008 } # Synchronous updates
ATTR_IMMUTABLE { 0x00000010 } # Immutable file
ATTR_APPEND { 0x00000020 } # Writes to file may only append
ATTR_NODUMP { 0x00000040 } # Do not dump file
ATTR_NOATIME { 0x00000080 } # Do not update atime
ATTR_DIRTY { 0x00000100 }
ATTR_COMPRBLK { 0x00000200 } # One or more compressed clusters
ATTR_NOCOMPR { 0x00000400 } # Access raw compressed data
ATTR_ENCRYPT { 0x00000800 } # Encrypted
ATTR_BTREE { 0x00001000 } # Btree format directory
ATTR_INDEX { 0x00001000 } # Hash-indexed directory
ATTR_IMAGIC { 0x00002000 }
ATTR_JOURNAL_DATA { 0x00004000 } # File data should be journaled
ATTR_NOTAIL { 0x00008000 } # File tail should not be merged
ATTR_DIRSYNC { 0x00010000 } # Synchronous dir modifications
ATTR_TOPDIR { 0x00020000 } # Top of directory hierarchies
ATTR_HUGE_FILE { 0x00040000 } # Set to each huge file
ATTR_EXTENTS { 0x00080000 } # Inode uses extents
ATTR_VERITY { 0x00100000 } # Verity protected inode
ATTR_EA_INODE { 0x00200000 } # Inode used for large EA
ATTR_NOCOW { 0x00800000 } # Do not cow file
ATTR_SNAPFILE { 0x01000000 } # Inode is a snapshot
ATTR_DAX { 0x02000000 } # Inode is DAX
ATTR_SNAPFILE_DELETED { 0x04000000 } # Snapshot is being deleted
ATTR_SNAPFILE_SHRUNK { 0x08000000 } # Snapshot shrink has completed
ATTR_INLINE_DATA { 0x10000000 } # Inode has inline data
ATTR_PROJINHERIT { 0x20000000 } # Create with parents projid
ATTR_CASEFOLD { 0x40000000 } # Casefolded file
// Attribute predicates (canonical, aliases)
secrm { attr & ATTR_SECRM }
unrm { attr & ATTR_UNRM }
compr { attr & ATTR_COMPR }
sync { attr & ATTR_SYNC }
immutable { attr & ATTR_IMMUTABLE }
append { attr & ATTR_APPEND }
nodump { attr & ATTR_NODUMP }
noatime { attr & ATTR_NOATIME }
dirty { attr & ATTR_DIRTY }
comprblk { attr & ATTR_COMPRBLK }
nocompr { attr & ATTR_NOCOMPR }
encrypt { attr & ATTR_ENCRYPT }
btree { attr & ATTR_BTREE }
index { attr & ATTR_INDEX }
imagic { attr & ATTR_IMAGIC }
journal_data { attr & ATTR_JOURNAL_DATA }
notail { attr & ATTR_NOTAIL }
dirsync { attr & ATTR_DIRSYNC }
topdir { attr & ATTR_TOPDIR }
huge_file { attr & ATTR_HUGE_FILE }
extents { attr & ATTR_EXTENTS }
verity { attr & ATTR_VERITY }
ea_inode { attr & ATTR_EA_INODE }
nocow { attr & ATTR_NOCOW }
snapfile { attr & ATTR_SNAPFILE }
dax { attr & ATTR_DAX }
snapfile_deleted { attr & ATTR_SNAPFILE_DELETED }
snapfile_shrunk { attr & ATTR_SNAPFILE_SHRUNK }
inline_data { attr & ATTR_INLINE_DATA }
projinherit { attr & ATTR_PROJINHERIT }
casefold { attr & ATTR_CASEFOLD }
secure_deletion { secrm }
undelete { unrm }
compressed { compr }
synchronous { sync }
append_only { append }
nocompression { nocompr }
encrypted { encrypt }
indexed { index }
direct_access { dax }
inherit_project { projinherit }
attr_s { secrm }
attr_u { unrm }
attr_c { compr }
attr_S { sync }
attr_i { immutable }
attr_a { append }
attr_d { nodump }
attr_A { noatime }
attr_m { nocompr }
attr_E { encrypt }
attr_I { index }
attr_j { journal_data }
attr_t { notail }
attr_D { dirsync }
attr_T { topdir }
attr_e { extents }
attr_V { verity }
attr_C { nocow }
attr_x { dax }
attr_N { inline_data }
attr_P { projinherit }
attr_F { casefold }