3 #include<linux/fat_cvf.h>
6 * MS-DOS file system in-core superblock data
9 struct fat_mount_options {
12 unsigned short fs_umask;
13 unsigned short codepage; /* Codepage for shortname conversions */
14 char *iocharset; /* Charset used for filename input/display */
15 unsigned short shortname; /* flags for shortname display/create rule */
16 unsigned char name_check; /* r = relaxed, n = normal, s = strict */
17 unsigned char conversion; /* b = binary, t = text, a = auto */
18 unsigned quiet:1, /* set = fake successful chmods and chowns */
19 showexec:1, /* set = only set x bit for com/exe/bat */
20 sys_immutable:1, /* set = system files are immutable */
21 dotsOK:1, /* set = hidden and system files are named '.filename' */
22 isvfat:1, /* 0=no vfat long filename support, 1=vfat support */
23 utf8:1, /* Use of UTF8 character set (Default) */
24 unicode_xlate:1, /* create escape sequences for unhandled Unicode */
25 posixfs:1, /* Allow names like makefile and Makefile to coexist */
26 numtail:1, /* Does first alias have a numeric '~1' type tail? */
27 atari:1, /* Use Atari GEMDOS variation of MS-DOS fs */
28 fat32:1, /* Is this a FAT32 partition? */
29 nocase:1; /* Does this need case conversion? 0=need case conversion*/
32 struct msdos_sb_info {
33 unsigned short cluster_size; /* sectors/cluster */
34 unsigned short cluster_bits; /* sectors/cluster */
35 unsigned char fats,fat_bits; /* number of FATs, FAT bits (12 or 16) */
36 unsigned short fat_start;
37 unsigned long fat_length; /* FAT start & length (sec.) */
38 unsigned long dir_start;
39 unsigned short dir_entries; /* root dir start & entries */
40 unsigned long data_start; /* first data sector */
41 unsigned long clusters; /* number of clusters */
42 unsigned long root_cluster; /* first cluster of the root directory */
43 unsigned long fsinfo_sector; /* FAT32 fsinfo offset from start of disk */
44 struct semaphore fat_lock;
45 int prev_free; /* previously returned free cluster number */
46 int free_clusters; /* -1 if undefined */
47 struct fat_mount_options options;
48 struct nls_table *nls_disk; /* Codepage used on disk */
49 struct nls_table *nls_io; /* Charset used for input and display */
50 struct cvf_format* cvf_format;
51 void *dir_ops; /* Opaque; default directory operations */
53 int dir_per_block; /* dir entries per block */
54 int dir_per_block_bits; /* log2(dir_per_block) */