29# define _(String) dgettext (PACKAGE, String)
31# define _(String) (String)
39#define BUFFER_SIZE 1024
68 uint8_t is_upper_case_name;
69 uint8_t creation_time_low;
70 uint16_t creation_time_high;
71 uint16_t creation_date;
73 uint16_t first_cluster_high;
76 uint16_t first_cluster;
125#define FAT_SPECIFIC(fs) ((FatSpecific*) fs->type_specific)
129#define DELETED_FLAG 0xe5
131#define READONLY_ATTR 0x01
132#define HIDDEN_ATTR 0x02
133#define SYSTEM_ATTR 0x04
134#define VOLUME_LABEL_ATTR 0x08
135#define VFAT_ATTR 0x0f
136#define DIRECTORY_ATTR 0x10
137#define ARCH_ATTR 0x20
139#define MAX_FAT12_CLUSTERS 4086
140#define MAX_FAT16_CLUSTERS 65526
141#define MAX_FAT32_CLUSTERS 2000000
143#define FAT_ROOT_DIR_ENTRY_COUNT 512
typedef __attribute__
Definition: vtoc.h:80
uint32_t length
Definition: dos.c:5
struct _FatInfoSector FatInfoSector
Definition: bootsector.h:24
struct _FatBootSector FatBootSector
Definition: bootsector.h:23
struct _FatClusterInfo FatClusterInfo
Definition: count.h:24
PedFileSystem * fat_alloc(const PedGeometry *geom)
Definition: fat.c:27
enum _FatType FatType
Definition: fat.h:49
int fat_alloc_buffers(PedFileSystem *fs)
Definition: fat.c:59
_FatType
Definition: fat.h:44
@ FAT_TYPE_FAT16
Definition: fat.h:46
@ FAT_TYPE_FAT32
Definition: fat.h:47
@ FAT_TYPE_FAT12
Definition: fat.h:45
void fat_free(PedFileSystem *fs)
Definition: fat.c:57
PedFileSystemType fat32_type
Definition: fat.c:138
int32_t FatFragment
Definition: fat.h:42
PedFileSystemType fat16_type
Definition: fat.c:132
int fat_resize(PedFileSystem *fs, PedGeometry *geom, PedTimer *timer)
Definition: resize.c:825
void fat_print(const PedFileSystem *fs)
uint32_t FatCluster
Definition: fat.h:41
struct _FatDirEntry FatDirEntry
Definition: fat.h:52
long long PedSector
We can address 2^63 sectors.
Definition: device.h:31
char name[16]
Definition: pc98.c:13
void fat_free_buffers(PedFileSystem *fs)
Definition: fat.c:81
int fat_set_frag_sectors(PedFileSystem *fs, PedSector frag_sectors)
Definition: fat.c:100
PedSector root_dir_sector_count
Definition: fat.h:116
FatFragment cluster_frags
Definition: fat.h:129
FatFragment buffer_frags
Definition: fat.h:128
int fat_table_count
Definition: fat.h:103
uint32_t serial_number
Definition: fat.h:106
PedSector fat_sectors
Definition: fat.h:104
PedSector cluster_offset
Definition: fat.h:111
FatCluster cluster_count
Definition: fat.h:99
PedSector buffer_sectors
Definition: fat.h:122
int heads
Definition: fat.h:95
FatCluster total_dir_clusters
Definition: fat.h:117
PedSector fat_offset
Definition: fat.h:109
PedSector sector_count
Definition: fat.h:92
PedSector info_sector_offset
Definition: fat.h:108
int dir_entries_per_cluster
Definition: fat.h:100
FatBootSector * boot_sector
Definition: fat.h:88
FatInfoSector * info_sector
Definition: fat.h:89
PedSector boot_sector_backup_offset
Definition: fat.h:112
FatFragment frag_count
Definition: fat.h:127
int root_dir_entry_count
Definition: fat.h:115
int cluster_size
Definition: fat.h:97
char * buffer
Definition: fat.h:123
FatClusterInfo * cluster_info
Definition: fat.h:120
int logical_sector_size
Definition: fat.h:91
FatTable * fat
Definition: fat.h:119
FatType fat_type
Definition: fat.h:102
int frag_size
Definition: fat.h:125
PedSector root_dir_offset
Definition: fat.h:110
PedSector cluster_sectors
Definition: fat.h:98
FatCluster root_cluster
Definition: fat.h:114
PedSector frag_sectors
Definition: fat.h:126
int sectors_per_track
Definition: fat.h:94
Structure describing type of file system.
Definition: filesys.h:46
Structure describing file system.
Definition: filesys.h:68
Geometry of the partition.
Definition: geom.h:35