aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@www.linux.org.uk>2005-04-25 21:32:12 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-25 21:32:12 -0400
commit94f2f715771d0aa5554451d1e2a920f11b8be3fe (patch)
tree07ebba8f6bbb91627c64c1f27e91e916dfd70756
parent7366d36cb967d7a3ac324c789a8b718e61d01b31 (diff)
[PATCH] isofs includes sanitized
fs/isofs includes trimmed down to something resembling sanity. Kernel-only parts of linux/iso_fs.h and entire linux/iso_fs_{sb,i}.h moved to fs/isofs/isofs.h. A lot of useless #include in fs/isofs/*.c killed. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--fs/isofs/compress.c21
-rw-r--r--fs/isofs/dir.c13
-rw-r--r--fs/isofs/export.c6
-rw-r--r--fs/isofs/inode.c19
-rw-r--r--fs/isofs/isofs.h190
-rw-r--r--fs/isofs/joliet.c6
-rw-r--r--fs/isofs/namei.c13
-rw-r--r--fs/isofs/rock.c8
-rw-r--r--fs/isofs/util.c5
-rw-r--r--include/linux/iso_fs.h147
-rw-r--r--include/linux/iso_fs_i.h27
-rw-r--r--include/linux/iso_fs_sb.h34
12 files changed, 203 insertions, 286 deletions
diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c
index fb42c3f3bf0..34a44e45168 100644
--- a/fs/isofs/compress.c
+++ b/fs/isofs/compress.c
@@ -18,29 +18,12 @@
18 18
19#include <linux/config.h> 19#include <linux/config.h>
20#include <linux/module.h> 20#include <linux/module.h>
21
22#include <linux/stat.h>
23#include <linux/time.h>
24#include <linux/iso_fs.h>
25#include <linux/kernel.h>
26#include <linux/major.h>
27#include <linux/mm.h>
28#include <linux/string.h>
29#include <linux/slab.h>
30#include <linux/errno.h>
31#include <linux/init.h> 21#include <linux/init.h>
32#include <linux/nls.h> 22
33#include <linux/ctype.h>
34#include <linux/smp_lock.h>
35#include <linux/blkdev.h>
36#include <linux/vmalloc.h> 23#include <linux/vmalloc.h>
37#include <linux/zlib.h> 24#include <linux/zlib.h>
38#include <linux/buffer_head.h>
39
40#include <asm/system.h>
41#include <asm/uaccess.h>
42#include <asm/semaphore.h>
43 25
26#include "isofs.h"
44#include "zisofs.h" 27#include "zisofs.h"
45 28
46/* This should probably be global. */ 29/* This should probably be global. */
diff --git a/fs/isofs/dir.c b/fs/isofs/dir.c
index 14d86de6637..6030956b894 100644
--- a/fs/isofs/dir.c
+++ b/fs/isofs/dir.c
@@ -10,20 +10,9 @@
10 * 10 *
11 * isofs directory handling functions 11 * isofs directory handling functions
12 */ 12 */
13#include <linux/errno.h>
14#include <linux/fs.h>
15#include <linux/iso_fs.h>
16#include <linux/kernel.h>
17#include <linux/stat.h>
18#include <linux/string.h>
19#include <linux/mm.h>
20#include <linux/slab.h>
21#include <linux/time.h>
22#include <linux/config.h> 13#include <linux/config.h>
23#include <linux/smp_lock.h> 14#include <linux/smp_lock.h>
24#include <linux/buffer_head.h> 15#include "isofs.h"
25
26#include <asm/uaccess.h>
27 16
28static int isofs_readdir(struct file *, void *, filldir_t); 17static int isofs_readdir(struct file *, void *, filldir_t);
29 18
diff --git a/fs/isofs/export.c b/fs/isofs/export.c
index e4252c96087..4af856a7fda 100644
--- a/fs/isofs/export.c
+++ b/fs/isofs/export.c
@@ -13,11 +13,7 @@
13 * fs/exportfs/expfs.c. 13 * fs/exportfs/expfs.c.
14 */ 14 */
15 15
16#include <linux/buffer_head.h> 16#include "isofs.h"
17#include <linux/errno.h>
18#include <linux/fs.h>
19#include <linux/iso_fs.h>
20#include <linux/kernel.h>
21 17
22static struct dentry * 18static struct dentry *
23isofs_export_iget(struct super_block *sb, 19isofs_export_iget(struct super_block *sb,
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c
index b9256e65e14..abd7b12eeca 100644
--- a/fs/isofs/inode.c
+++ b/fs/isofs/inode.c
@@ -12,29 +12,18 @@
12 */ 12 */
13 13
14#include <linux/config.h> 14#include <linux/config.h>
15#include <linux/init.h>
15#include <linux/module.h> 16#include <linux/module.h>
16 17
17#include <linux/stat.h>
18#include <linux/time.h>
19#include <linux/iso_fs.h>
20#include <linux/kernel.h>
21#include <linux/major.h>
22#include <linux/mm.h>
23#include <linux/string.h>
24#include <linux/slab.h> 18#include <linux/slab.h>
25#include <linux/errno.h>
26#include <linux/cdrom.h>
27#include <linux/init.h>
28#include <linux/nls.h> 19#include <linux/nls.h>
29#include <linux/ctype.h> 20#include <linux/ctype.h>
30#include <linux/smp_lock.h> 21#include <linux/smp_lock.h>
31#include <linux/blkdev.h> 22#include <linux/statfs.h>
32#include <linux/buffer_head.h> 23#include <linux/cdrom.h>
33#include <linux/vfs.h>
34#include <linux/parser.h> 24#include <linux/parser.h>
35#include <asm/system.h>
36#include <asm/uaccess.h>
37 25
26#include "isofs.h"
38#include "zisofs.h" 27#include "zisofs.h"
39 28
40#define BEQUIET 29#define BEQUIET
diff --git a/fs/isofs/isofs.h b/fs/isofs/isofs.h
new file mode 100644
index 00000000000..9ce7b51fb61
--- /dev/null
+++ b/fs/isofs/isofs.h
@@ -0,0 +1,190 @@
1#include <linux/fs.h>
2#include <linux/buffer_head.h>
3#include <linux/iso_fs.h>
4#include <asm/unaligned.h>
5
6enum isofs_file_format {
7 isofs_file_normal = 0,
8 isofs_file_sparse = 1,
9 isofs_file_compressed = 2,
10};
11
12/*
13 * iso fs inode data in memory
14 */
15struct iso_inode_info {
16 unsigned long i_iget5_block;
17 unsigned long i_iget5_offset;
18 unsigned int i_first_extent;
19 unsigned char i_file_format;
20 unsigned char i_format_parm[3];
21 unsigned long i_next_section_block;
22 unsigned long i_next_section_offset;
23 off_t i_section_size;
24 struct inode vfs_inode;
25};
26
27/*
28 * iso9660 super-block data in memory
29 */
30struct isofs_sb_info {
31 unsigned long s_ninodes;
32 unsigned long s_nzones;
33 unsigned long s_firstdatazone;
34 unsigned long s_log_zone_size;
35 unsigned long s_max_size;
36
37 unsigned char s_high_sierra; /* A simple flag */
38 unsigned char s_mapping;
39 int s_rock_offset; /* offset of SUSP fields within SU area */
40 unsigned char s_rock;
41 unsigned char s_joliet_level;
42 unsigned char s_utf8;
43 unsigned char s_cruft; /* Broken disks with high
44 byte of length containing
45 junk */
46 unsigned char s_unhide;
47 unsigned char s_nosuid;
48 unsigned char s_nodev;
49 unsigned char s_nocompress;
50
51 mode_t s_mode;
52 gid_t s_gid;
53 uid_t s_uid;
54 struct nls_table *s_nls_iocharset; /* Native language support table */
55};
56
57static inline struct isofs_sb_info *ISOFS_SB(struct super_block *sb)
58{
59 return sb->s_fs_info;
60}
61
62static inline struct iso_inode_info *ISOFS_I(struct inode *inode)
63{
64 return container_of(inode, struct iso_inode_info, vfs_inode);
65}
66
67static inline int isonum_711(char *p)
68{
69 return *(u8 *)p;
70}
71static inline int isonum_712(char *p)
72{
73 return *(s8 *)p;
74}
75static inline unsigned int isonum_721(char *p)
76{
77 return le16_to_cpu(get_unaligned((__le16 *)p));
78}
79static inline unsigned int isonum_722(char *p)
80{
81 return be16_to_cpu(get_unaligned((__le16 *)p));
82}
83static inline unsigned int isonum_723(char *p)
84{
85 /* Ignore bigendian datum due to broken mastering programs */
86 return le16_to_cpu(get_unaligned((__le16 *)p));
87}
88static inline unsigned int isonum_731(char *p)
89{
90 return le32_to_cpu(get_unaligned((__le32 *)p));
91}
92static inline unsigned int isonum_732(char *p)
93{
94 return be32_to_cpu(get_unaligned((__le32 *)p));
95}
96static inline unsigned int isonum_733(char *p)
97{
98 /* Ignore bigendian datum due to broken mastering programs */
99 return le32_to_cpu(get_unaligned((__le32 *)p));
100}
101extern int iso_date(char *, int);
102
103struct inode; /* To make gcc happy */
104
105extern int parse_rock_ridge_inode(struct iso_directory_record *, struct inode *);
106extern int get_rock_ridge_filename(struct iso_directory_record *, char *, struct inode *);
107extern int isofs_name_translate(struct iso_directory_record *, char *, struct inode *);
108
109int get_joliet_filename(struct iso_directory_record *, unsigned char *, struct inode *);
110int get_acorn_filename(struct iso_directory_record *, char *, struct inode *);
111
112extern struct dentry *isofs_lookup(struct inode *, struct dentry *, struct nameidata *);
113extern struct buffer_head *isofs_bread(struct inode *, sector_t);
114extern int isofs_get_blocks(struct inode *, sector_t, struct buffer_head **, unsigned long);
115
116extern struct inode *isofs_iget(struct super_block *sb,
117 unsigned long block,
118 unsigned long offset);
119
120/* Because the inode number is no longer relevant to finding the
121 * underlying meta-data for an inode, we are free to choose a more
122 * convenient 32-bit number as the inode number. The inode numbering
123 * scheme was recommended by Sergey Vlasov and Eric Lammerts. */
124static inline unsigned long isofs_get_ino(unsigned long block,
125 unsigned long offset,
126 unsigned long bufbits)
127{
128 return (block << (bufbits - 5)) | (offset >> 5);
129}
130
131/* Every directory can have many redundant directory entries scattered
132 * throughout the directory tree. First there is the directory entry
133 * with the name of the directory stored in the parent directory.
134 * Then, there is the "." directory entry stored in the directory
135 * itself. Finally, there are possibly many ".." directory entries
136 * stored in all the subdirectories.
137 *
138 * In order for the NFS get_parent() method to work and for the
139 * general consistency of the dcache, we need to make sure the
140 * "i_iget5_block" and "i_iget5_offset" all point to exactly one of
141 * the many redundant entries for each directory. We normalize the
142 * block and offset by always making them point to the "." directory.
143 *
144 * Notice that we do not use the entry for the directory with the name
145 * that is located in the parent directory. Even though choosing this
146 * first directory is more natural, it is much easier to find the "."
147 * entry in the NFS get_parent() method because it is implicitly
148 * encoded in the "extent + ext_attr_length" fields of _all_ the
149 * redundant entries for the directory. Thus, it can always be
150 * reached regardless of which directory entry you have in hand.
151 *
152 * This works because the "." entry is simply the first directory
153 * record when you start reading the file that holds all the directory
154 * records, and this file starts at "extent + ext_attr_length" blocks.
155 * Because the "." entry is always the first entry listed in the
156 * directories file, the normalized "offset" value is always 0.
157 *
158 * You should pass the directory entry in "de". On return, "block"
159 * and "offset" will hold normalized values. Only directories are
160 * affected making it safe to call even for non-directory file
161 * types. */
162static inline void
163isofs_normalize_block_and_offset(struct iso_directory_record* de,
164 unsigned long *block,
165 unsigned long *offset)
166{
167 /* Only directories are normalized. */
168 if (de->flags[0] & 2) {
169 *offset = 0;
170 *block = (unsigned long)isonum_733(de->extent)
171 + (unsigned long)isonum_711(de->ext_attr_length);
172 }
173}
174
175extern struct inode_operations isofs_dir_inode_operations;
176extern struct file_operations isofs_dir_operations;
177extern struct address_space_operations isofs_symlink_aops;
178extern struct export_operations isofs_export_ops;
179
180/* The following macros are used to check for memory leaks. */
181#ifdef LEAK_CHECK
182#define free_s leak_check_free_s
183#define malloc leak_check_malloc
184#define sb_bread leak_check_bread
185#define brelse leak_check_brelse
186extern void * leak_check_malloc(unsigned int size);
187extern void leak_check_free_s(void * obj, int size);
188extern struct buffer_head * leak_check_bread(struct super_block *sb, int block);
189extern void leak_check_brelse(struct buffer_head * bh);
190#endif /* LEAK_CHECK */
diff --git a/fs/isofs/joliet.c b/fs/isofs/joliet.c
index 86c50e22fc8..2931de7f1a6 100644
--- a/fs/isofs/joliet.c
+++ b/fs/isofs/joliet.c
@@ -6,11 +6,9 @@
6 * Joliet: Microsoft's Unicode extensions to iso9660 6 * Joliet: Microsoft's Unicode extensions to iso9660
7 */ 7 */
8 8
9#include <linux/string.h> 9#include <linux/types.h>
10#include <linux/nls.h> 10#include <linux/nls.h>
11#include <linux/mm.h> 11#include "isofs.h"
12#include <linux/iso_fs.h>
13#include <asm/unaligned.h>
14 12
15/* 13/*
16 * Convert Unicode 16 to UTF8 or ASCII. 14 * Convert Unicode 16 to UTF8 or ASCII.
diff --git a/fs/isofs/namei.c b/fs/isofs/namei.c
index 9569fc44102..690edf37173 100644
--- a/fs/isofs/namei.c
+++ b/fs/isofs/namei.c
@@ -6,20 +6,9 @@
6 * (C) 1991 Linus Torvalds - minix filesystem 6 * (C) 1991 Linus Torvalds - minix filesystem
7 */ 7 */
8 8
9#include <linux/time.h>
10#include <linux/iso_fs.h>
11#include <linux/kernel.h>
12#include <linux/string.h>
13#include <linux/stat.h>
14#include <linux/fcntl.h>
15#include <linux/mm.h>
16#include <linux/errno.h>
17#include <linux/config.h> /* Joliet? */ 9#include <linux/config.h> /* Joliet? */
18#include <linux/smp_lock.h> 10#include <linux/smp_lock.h>
19#include <linux/buffer_head.h> 11#include "isofs.h"
20#include <linux/dcache.h>
21
22#include <asm/uaccess.h>
23 12
24/* 13/*
25 * ok, we cannot use strncmp, as the name is not in our data space. 14 * ok, we cannot use strncmp, as the name is not in our data space.
diff --git a/fs/isofs/rock.c b/fs/isofs/rock.c
index 8bdd3e40954..089e79c6558 100644
--- a/fs/isofs/rock.c
+++ b/fs/isofs/rock.c
@@ -6,17 +6,11 @@
6 * Rock Ridge Extensions to iso9660 6 * Rock Ridge Extensions to iso9660
7 */ 7 */
8 8
9#include <linux/stat.h>
10#include <linux/time.h>
11#include <linux/iso_fs.h>
12#include <linux/string.h>
13#include <linux/mm.h>
14#include <linux/slab.h> 9#include <linux/slab.h>
15#include <linux/pagemap.h> 10#include <linux/pagemap.h>
16#include <linux/smp_lock.h> 11#include <linux/smp_lock.h>
17#include <linux/buffer_head.h>
18#include <asm/page.h>
19 12
13#include "isofs.h"
20#include "rock.h" 14#include "rock.h"
21 15
22/* These functions are designed to read the system areas of a directory record 16/* These functions are designed to read the system areas of a directory record
diff --git a/fs/isofs/util.c b/fs/isofs/util.c
index 3f6d9c1ac95..01e1ee7a998 100644
--- a/fs/isofs/util.c
+++ b/fs/isofs/util.c
@@ -2,9 +2,7 @@
2 * linux/fs/isofs/util.c 2 * linux/fs/isofs/util.c
3 */ 3 */
4 4
5#include <linux/time.h> 5#include "isofs.h"
6#include <linux/fs.h>
7#include <linux/iso_fs.h>
8 6
9/* 7/*
10 * We have to convert from a MM/DD/YY format to the Unix ctime format. 8 * We have to convert from a MM/DD/YY format to the Unix ctime format.
@@ -80,4 +78,3 @@ int iso_date(char * p, int flag)
80 } 78 }
81 return crtime; 79 return crtime;
82} 80}
83
diff --git a/include/linux/iso_fs.h b/include/linux/iso_fs.h
index 099039d4b10..47967878bfe 100644
--- a/include/linux/iso_fs.h
+++ b/include/linux/iso_fs.h
@@ -1,4 +1,3 @@
1
2#ifndef _ISOFS_FS_H 1#ifndef _ISOFS_FS_H
3#define _ISOFS_FS_H 2#define _ISOFS_FS_H
4 3
@@ -163,150 +162,4 @@ struct iso_directory_record {
163 162
164#define ISOFS_SUPER_MAGIC 0x9660 163#define ISOFS_SUPER_MAGIC 0x9660
165 164
166#ifdef __KERNEL__
167/* Number conversion inlines, named after the section in ISO 9660
168 they correspond to. */
169
170#include <asm/byteorder.h>
171#include <asm/unaligned.h>
172#include <linux/iso_fs_i.h>
173#include <linux/iso_fs_sb.h>
174
175static inline struct isofs_sb_info *ISOFS_SB(struct super_block *sb)
176{
177 return sb->s_fs_info;
178}
179
180static inline struct iso_inode_info *ISOFS_I(struct inode *inode)
181{
182 return container_of(inode, struct iso_inode_info, vfs_inode);
183}
184
185static inline int isonum_711(char *p)
186{
187 return *(u8 *)p;
188}
189static inline int isonum_712(char *p)
190{
191 return *(s8 *)p;
192}
193static inline unsigned int isonum_721(char *p)
194{
195 return le16_to_cpu(get_unaligned((__le16 *)p));
196}
197static inline unsigned int isonum_722(char *p)
198{
199 return be16_to_cpu(get_unaligned((__le16 *)p));
200}
201static inline unsigned int isonum_723(char *p)
202{
203 /* Ignore bigendian datum due to broken mastering programs */
204 return le16_to_cpu(get_unaligned((__le16 *)p));
205}
206static inline unsigned int isonum_731(char *p)
207{
208 return le32_to_cpu(get_unaligned((__le32 *)p));
209}
210static inline unsigned int isonum_732(char *p)
211{
212 return be32_to_cpu(get_unaligned((__le32 *)p));
213}
214static inline unsigned int isonum_733(char *p)
215{
216 /* Ignore bigendian datum due to broken mastering programs */
217 return le32_to_cpu(get_unaligned((__le32 *)p));
218}
219extern int iso_date(char *, int);
220
221struct inode; /* To make gcc happy */
222
223extern int parse_rock_ridge_inode(struct iso_directory_record *, struct inode *);
224extern int get_rock_ridge_filename(struct iso_directory_record *, char *, struct inode *);
225extern int isofs_name_translate(struct iso_directory_record *, char *, struct inode *);
226
227int get_joliet_filename(struct iso_directory_record *, unsigned char *, struct inode *);
228int get_acorn_filename(struct iso_directory_record *, char *, struct inode *);
229
230extern struct dentry *isofs_lookup(struct inode *, struct dentry *, struct nameidata *);
231extern struct buffer_head *isofs_bread(struct inode *, sector_t);
232extern int isofs_get_blocks(struct inode *, sector_t, struct buffer_head **, unsigned long);
233
234extern struct inode *isofs_iget(struct super_block *sb,
235 unsigned long block,
236 unsigned long offset);
237
238/* Because the inode number is no longer relevant to finding the
239 * underlying meta-data for an inode, we are free to choose a more
240 * convenient 32-bit number as the inode number. The inode numbering
241 * scheme was recommended by Sergey Vlasov and Eric Lammerts. */
242static inline unsigned long isofs_get_ino(unsigned long block,
243 unsigned long offset,
244 unsigned long bufbits)
245{
246 return (block << (bufbits - 5)) | (offset >> 5);
247}
248
249/* Every directory can have many redundant directory entries scattered
250 * throughout the directory tree. First there is the directory entry
251 * with the name of the directory stored in the parent directory.
252 * Then, there is the "." directory entry stored in the directory
253 * itself. Finally, there are possibly many ".." directory entries
254 * stored in all the subdirectories.
255 *
256 * In order for the NFS get_parent() method to work and for the
257 * general consistency of the dcache, we need to make sure the
258 * "i_iget5_block" and "i_iget5_offset" all point to exactly one of
259 * the many redundant entries for each directory. We normalize the
260 * block and offset by always making them point to the "." directory.
261 *
262 * Notice that we do not use the entry for the directory with the name
263 * that is located in the parent directory. Even though choosing this
264 * first directory is more natural, it is much easier to find the "."
265 * entry in the NFS get_parent() method because it is implicitly
266 * encoded in the "extent + ext_attr_length" fields of _all_ the
267 * redundant entries for the directory. Thus, it can always be
268 * reached regardless of which directory entry you have in hand.
269 *
270 * This works because the "." entry is simply the first directory
271 * record when you start reading the file that holds all the directory
272 * records, and this file starts at "extent + ext_attr_length" blocks.
273 * Because the "." entry is always the first entry listed in the
274 * directories file, the normalized "offset" value is always 0.
275 *
276 * You should pass the directory entry in "de". On return, "block"
277 * and "offset" will hold normalized values. Only directories are
278 * affected making it safe to call even for non-directory file
279 * types. */
280static inline void
281isofs_normalize_block_and_offset(struct iso_directory_record* de,
282 unsigned long *block,
283 unsigned long *offset)
284{
285 /* Only directories are normalized. */
286 if (de->flags[0] & 2) {
287 *offset = 0;
288 *block = (unsigned long)isonum_733(de->extent)
289 + (unsigned long)isonum_711(de->ext_attr_length);
290 }
291}
292
293extern struct inode_operations isofs_dir_inode_operations;
294extern struct file_operations isofs_dir_operations;
295extern struct address_space_operations isofs_symlink_aops;
296extern struct export_operations isofs_export_ops;
297
298/* The following macros are used to check for memory leaks. */
299#ifdef LEAK_CHECK
300#define free_s leak_check_free_s
301#define malloc leak_check_malloc
302#define sb_bread leak_check_bread
303#define brelse leak_check_brelse
304extern void * leak_check_malloc(unsigned int size);
305extern void leak_check_free_s(void * obj, int size);
306extern struct buffer_head * leak_check_bread(struct super_block *sb, int block);
307extern void leak_check_brelse(struct buffer_head * bh);
308#endif /* LEAK_CHECK */
309
310#endif /* __KERNEL__ */
311
312#endif 165#endif
diff --git a/include/linux/iso_fs_i.h b/include/linux/iso_fs_i.h
deleted file mode 100644
index 59065e939ea..00000000000
--- a/include/linux/iso_fs_i.h
+++ /dev/null
@@ -1,27 +0,0 @@
1#ifndef _ISO_FS_I
2#define _ISO_FS_I
3
4#include <linux/fs.h>
5
6enum isofs_file_format {
7 isofs_file_normal = 0,
8 isofs_file_sparse = 1,
9 isofs_file_compressed = 2,
10};
11
12/*
13 * iso fs inode data in memory
14 */
15struct iso_inode_info {
16 unsigned long i_iget5_block;
17 unsigned long i_iget5_offset;
18 unsigned int i_first_extent;
19 unsigned char i_file_format;
20 unsigned char i_format_parm[3];
21 unsigned long i_next_section_block;
22 unsigned long i_next_section_offset;
23 off_t i_section_size;
24 struct inode vfs_inode;
25};
26
27#endif
diff --git a/include/linux/iso_fs_sb.h b/include/linux/iso_fs_sb.h
deleted file mode 100644
index 043b97b55b8..00000000000
--- a/include/linux/iso_fs_sb.h
+++ /dev/null
@@ -1,34 +0,0 @@
1#ifndef _ISOFS_FS_SB
2#define _ISOFS_FS_SB
3
4/*
5 * iso9660 super-block data in memory
6 */
7struct isofs_sb_info {
8 unsigned long s_ninodes;
9 unsigned long s_nzones;
10 unsigned long s_firstdatazone;
11 unsigned long s_log_zone_size;
12 unsigned long s_max_size;
13
14 unsigned char s_high_sierra; /* A simple flag */
15 unsigned char s_mapping;
16 int s_rock_offset; /* offset of SUSP fields within SU area */
17 unsigned char s_rock;
18 unsigned char s_joliet_level;
19 unsigned char s_utf8;
20 unsigned char s_cruft; /* Broken disks with high
21 byte of length containing
22 junk */
23 unsigned char s_unhide;
24 unsigned char s_nosuid;
25 unsigned char s_nodev;
26 unsigned char s_nocompress;
27
28 mode_t s_mode;
29 gid_t s_gid;
30 uid_t s_uid;
31 struct nls_table *s_nls_iocharset; /* Native language support table */
32};
33
34#endif