Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
amigaffs.h
Go to the documentation of this file.
1 #ifndef AMIGAFFS_H
2 #define AMIGAFFS_H
3 
4 #include <linux/types.h>
5 #include <asm/byteorder.h>
6 
7 #define FS_OFS 0x444F5300
8 #define FS_FFS 0x444F5301
9 #define FS_INTLOFS 0x444F5302
10 #define FS_INTLFFS 0x444F5303
11 #define FS_DCOFS 0x444F5304
12 #define FS_DCFFS 0x444F5305
13 #define MUFS_FS 0x6d754653 /* 'muFS' */
14 #define MUFS_OFS 0x6d754600 /* 'muF\0' */
15 #define MUFS_FFS 0x6d754601 /* 'muF\1' */
16 #define MUFS_INTLOFS 0x6d754602 /* 'muF\2' */
17 #define MUFS_INTLFFS 0x6d754603 /* 'muF\3' */
18 #define MUFS_DCOFS 0x6d754604 /* 'muF\4' */
19 #define MUFS_DCFFS 0x6d754605 /* 'muF\5' */
20 
21 #define T_SHORT 2
22 #define T_LIST 16
23 #define T_DATA 8
24 
25 #define ST_LINKFILE -4
26 #define ST_FILE -3
27 #define ST_ROOT 1
28 #define ST_USERDIR 2
29 #define ST_SOFTLINK 3
30 #define ST_LINKDIR 4
31 
32 #define AFFS_ROOT_BMAPS 25
33 
34 struct affs_date {
38 };
39 
44 };
45 
54 };
55 
70 };
71 
72 struct affs_head {
80 };
81 
82 struct affs_tail {
88  u8 comment[92];
89  struct affs_date change;
90  u8 name[32];
99 };
100 
102 {
107  u8 symname[1]; /* depends on block size */
108 };
109 
111 {
118  u8 data[1]; /* depends on block size */
119 };
120 
121 /* Permission bits */
122 
123 #define FIBF_OTR_READ 0x8000
124 #define FIBF_OTR_WRITE 0x4000
125 #define FIBF_OTR_EXECUTE 0x2000
126 #define FIBF_OTR_DELETE 0x1000
127 #define FIBF_GRP_READ 0x0800
128 #define FIBF_GRP_WRITE 0x0400
129 #define FIBF_GRP_EXECUTE 0x0200
130 #define FIBF_GRP_DELETE 0x0100
131 
132 #define FIBF_HIDDEN 0x0080
133 #define FIBF_SCRIPT 0x0040
134 #define FIBF_PURE 0x0020 /* no use under linux */
135 #define FIBF_ARCHIVED 0x0010 /* never set, always cleared on write */
136 #define FIBF_NOREAD 0x0008 /* 0 means allowed */
137 #define FIBF_NOWRITE 0x0004 /* 0 means allowed */
138 #define FIBF_NOEXECUTE 0x0002 /* 0 means allowed, ignored under linux */
139 #define FIBF_NODELETE 0x0001 /* 0 means allowed */
140 
141 #define FIBF_OWNER 0x000F /* Bits pertaining to owner */
142 #define FIBF_MASK 0xEE0E /* Bits modified by Linux */
143 
144 #endif