1 |
1633 |
jcastillo |
#ifndef _MSDOS_FS_SB
|
2 |
|
|
#define _MSDOS_FS_SB
|
3 |
|
|
|
4 |
|
|
/*
|
5 |
|
|
* MS-DOS file system in-core superblock data
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
struct fat_mount_options {
|
9 |
|
|
uid_t fs_uid;
|
10 |
|
|
gid_t fs_gid;
|
11 |
|
|
unsigned short fs_umask;
|
12 |
|
|
unsigned short codepage; /* Codepage for shortname conversions */
|
13 |
|
|
char *iocharset; /* Charset used for filename input/display */
|
14 |
|
|
unsigned char name_check; /* r = relaxed, n = normal, s = strict */
|
15 |
|
|
unsigned char conversion; /* b = binary, t = text, a = auto */
|
16 |
|
|
unsigned quiet:1, /* set = fake successful chmods and chowns */
|
17 |
|
|
showexec:1, /* set = only set x bit for com/exe/bat */
|
18 |
|
|
sys_immutable:1, /* set = system files are immutable */
|
19 |
|
|
dotsOK:1, /* set = hidden and system files are named '.filename' */
|
20 |
|
|
isvfat:1, /* 0=no vfat long filename support, 1=vfat support */
|
21 |
|
|
utf8:1, /* Use of UTF8 character set (Default) */
|
22 |
|
|
unicode_xlate:1, /* create escape sequences for unhandled Unicode */
|
23 |
|
|
posixfs:1, /* Allow names like makefile and Makefile to coexist */
|
24 |
|
|
numtail:1, /* Does first alias have a numeric '~1' type tail? */
|
25 |
|
|
fat32:1; /* Is this a FAT32 partition? */
|
26 |
|
|
};
|
27 |
|
|
|
28 |
|
|
struct vfat_unicode {
|
29 |
|
|
unsigned char uni1;
|
30 |
|
|
unsigned char uni2;
|
31 |
|
|
};
|
32 |
|
|
|
33 |
|
|
struct msdos_sb_info {
|
34 |
|
|
unsigned short cluster_size; /* sectors/cluster */
|
35 |
|
|
unsigned char fats,fat_bits; /* number of FATs, FAT bits (12 or 16) */
|
36 |
|
|
unsigned short fat_start,fat_length; /* FAT start & length (sec.) */
|
37 |
|
|
unsigned short dir_start,dir_entries; /* root dir start & entries */
|
38 |
|
|
unsigned short data_start; /* first data sector */
|
39 |
|
|
unsigned long clusters; /* number of clusters */
|
40 |
|
|
unsigned long root_cluster; /* first cluster of the root directory */
|
41 |
|
|
unsigned long fsinfo_offset; /* FAT32 fsinfo offset from start of disk */
|
42 |
|
|
struct wait_queue *fat_wait;
|
43 |
|
|
int fat_lock;
|
44 |
|
|
int prev_free; /* previously returned free cluster number */
|
45 |
|
|
int free_clusters; /* -1 if undefined */
|
46 |
|
|
struct fat_mount_options options;
|
47 |
|
|
struct nls_table *nls_disk; /* Codepage used on disk */
|
48 |
|
|
struct nls_table *nls_io; /* Charset used for input and display */
|
49 |
|
|
};
|
50 |
|
|
|
51 |
|
|
#endif
|