1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/types.h>
6 #include <asm/byteorder.h>
8 #define FS_OFS 0x444F5300
9 #define FS_FFS 0x444F5301
10 #define FS_INTLOFS 0x444F5302
11 #define FS_INTLFFS 0x444F5303
12 #define FS_DCOFS 0x444F5304
13 #define FS_DCFFS 0x444F5305
14 #define MUFS_FS 0x6d754653 /* 'muFS' */
15 #define MUFS_OFS 0x6d754600 /* 'muF\0' */
16 #define MUFS_FFS 0x6d754601 /* 'muF\1' */
17 #define MUFS_INTLOFS 0x6d754602 /* 'muF\2' */
18 #define MUFS_INTLFFS 0x6d754603 /* 'muF\3' */
19 #define MUFS_DCOFS 0x6d754604 /* 'muF\4' */
20 #define MUFS_DCFFS 0x6d754605 /* 'muF\5' */
26 #define ST_LINKFILE -4
33 #define AFFS_ROOT_BMAPS 25
41 struct affs_short_date
{
47 struct affs_root_head
{
57 struct affs_root_tail
{
59 __be32 bm_blk
[AFFS_ROOT_BMAPS
];
61 struct affs_date root_change
;
65 struct affs_date disk_change
;
66 struct affs_date disk_create
;
90 struct affs_date change
;
108 u8 symname
[1]; /* depends on block size */
111 struct affs_data_head
119 u8 data
[1]; /* depends on block size */
122 /* Permission bits */
124 #define FIBF_OTR_READ 0x8000
125 #define FIBF_OTR_WRITE 0x4000
126 #define FIBF_OTR_EXECUTE 0x2000
127 #define FIBF_OTR_DELETE 0x1000
128 #define FIBF_GRP_READ 0x0800
129 #define FIBF_GRP_WRITE 0x0400
130 #define FIBF_GRP_EXECUTE 0x0200
131 #define FIBF_GRP_DELETE 0x0100
133 #define FIBF_HIDDEN 0x0080
134 #define FIBF_SCRIPT 0x0040
135 #define FIBF_PURE 0x0020 /* no use under linux */
136 #define FIBF_ARCHIVED 0x0010 /* never set, always cleared on write */
137 #define FIBF_NOREAD 0x0008 /* 0 means allowed */
138 #define FIBF_NOWRITE 0x0004 /* 0 means allowed */
139 #define FIBF_NOEXECUTE 0x0002 /* 0 means allowed, ignored under linux */
140 #define FIBF_NODELETE 0x0001 /* 0 means allowed */
142 #define FIBF_OWNER 0x000F /* Bits pertaining to owner */
143 #define FIBF_MASK 0xEE0E /* Bits modified by Linux */