1 #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 char name_check; /* r = relaxed, n = normal, s = strict */ 13 unsigned char conversion; /* b = binary, t = text, a = auto */ 14 unsigned quiet:1, /* set = fake successful chmods and chowns */ 15 showexec:1, /* set = only set x bit for com/exe/bat */ 16 sys_immutable:1, /* set = system files are immutable */ 17 dotsOK:1, /* set = hidden and system files are named '.filename' */ 18 isvfat:1, /* 0=no vfat long filename support, 1=vfat support */ 19 unicode_xlate:1, /* create escape sequences for unhandled Unicode */ 20 posixfs:1, /* Allow names like makefile and Makefile to coexist */ 21 numtail:1; /* Does first alias have a numeric '~1' type tail? */ 22 }; 23 24 25 struct msdos_sb_info { 26 unsigned short cluster_size; /* sectors/cluster */ 27 unsigned char fats,fat_bits; /* number of FATs, FAT bits (12 or 16) */ 28 unsigned short fat_start,fat_length; /* FAT start & length (sec.) */ 29 unsigned short dir_start,dir_entries; /* root dir start & entries */ 30 unsigned short data_start; /* first data sector */ 31 unsigned long clusters; /* number of clusters */ 32 struct wait_queue *fat_wait; 33 int fat_lock; 34 int prev_free; /* previously returned free cluster number */ 35 int free_clusters; /* -1 if undefined */ 36 struct fat_mount_options options; 37 }; 38 39 #endif