dosfstools  4.2
About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.
  Fossies Dox: dosfstools-4.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fsck.fat.h File Reference
#include <sys/types.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdint.h>
#include "endian_compat.h"
#include "msdos_fs.h"
Include dependency graph for fsck.fat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  boot_sector
 
struct  boot_sector_16
 
struct  info_sector
 
struct  DIR_ENT
 
struct  _dos_file
 
struct  FAT_ENTRY
 
struct  DOS_FS
 

Macros

#define VFAT_LN_ATTR   (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)
 
#define FAT_STATE_DIRTY   0x01
 
#define FAT_NEED_SURFACE_TEST   0x02
 
#define FAT16_FLAG_HARDDISK_ERROR   0x4000
 
#define FAT16_FLAG_CLEAN_SHUTDOWN   0x8000
 
#define FAT32_FLAG_HARDDISK_ERROR   0x4000000
 
#define FAT32_FLAG_CLEAN_SHUTDOWN   0x8000000
 
#define FAT_EOF(fs)   ((atari_format ? 0xfff : 0xff8) | FAT_EXTD(fs))
 
#define FAT_IS_EOF(fs, v)   ((uint32_t)(v) >= (0xff8|FAT_EXTD(fs)))
 
#define FAT_BAD(fs)   (0xff7 | FAT_EXTD(fs))
 
#define FAT_MIN_BAD(fs)   ((atari_format ? 0xff0 : 0xff7) | FAT_EXTD(fs))
 
#define FAT_MAX_BAD(fs)   ((atari_format ? 0xff7 : 0xff7) | FAT_EXTD(fs))
 
#define FAT_IS_BAD(fs, v)   ((v) >= FAT_MIN_BAD(fs) && (v) <= FAT_MAX_BAD(fs))
 
#define FAT_EXTD(fs)   (((1 << fs->eff_fat_bits)-1) & ~0xf)
 
#define FAT_NO_83NAME   32
 

Typedefs

typedef struct _dos_file DOS_FILE
 

Variables

int rw
 
int list
 
int verbose
 
int test
 
int no_spaces_in_sfns
 
long fat_table
 
int only_uppercase_label
 
unsigned n_files
 
void * mem_queue
 

Macro Definition Documentation

◆ FAT16_FLAG_CLEAN_SHUTDOWN

#define FAT16_FLAG_CLEAN_SHUTDOWN   0x8000

Definition at line 45 of file fsck.fat.h.

◆ FAT16_FLAG_HARDDISK_ERROR

#define FAT16_FLAG_HARDDISK_ERROR   0x4000

Definition at line 44 of file fsck.fat.h.

◆ FAT32_FLAG_CLEAN_SHUTDOWN

#define FAT32_FLAG_CLEAN_SHUTDOWN   0x8000000

Definition at line 48 of file fsck.fat.h.

◆ FAT32_FLAG_HARDDISK_ERROR

#define FAT32_FLAG_HARDDISK_ERROR   0x4000000

Definition at line 47 of file fsck.fat.h.

◆ FAT_BAD

#define FAT_BAD (   fs)    (0xff7 | FAT_EXTD(fs))

Definition at line 188 of file fsck.fat.h.

◆ FAT_EOF

#define FAT_EOF (   fs)    ((atari_format ? 0xfff : 0xff8) | FAT_EXTD(fs))

Definition at line 185 of file fsck.fat.h.

◆ FAT_EXTD

#define FAT_EXTD (   fs)    (((1 << fs->eff_fat_bits)-1) & ~0xf)

Definition at line 195 of file fsck.fat.h.

◆ FAT_IS_BAD

#define FAT_IS_BAD (   fs,
 
)    ((v) >= FAT_MIN_BAD(fs) && (v) <= FAT_MAX_BAD(fs))

Definition at line 192 of file fsck.fat.h.

◆ FAT_IS_EOF

#define FAT_IS_EOF (   fs,
 
)    ((uint32_t)(v) >= (0xff8|FAT_EXTD(fs)))

Definition at line 186 of file fsck.fat.h.

◆ FAT_MAX_BAD

#define FAT_MAX_BAD (   fs)    ((atari_format ? 0xff7 : 0xff7) | FAT_EXTD(fs))

Definition at line 191 of file fsck.fat.h.

◆ FAT_MIN_BAD

#define FAT_MIN_BAD (   fs)    ((atari_format ? 0xff0 : 0xff7) | FAT_EXTD(fs))

Definition at line 190 of file fsck.fat.h.

◆ FAT_NEED_SURFACE_TEST

#define FAT_NEED_SURFACE_TEST   0x02

Definition at line 42 of file fsck.fat.h.

◆ FAT_NO_83NAME

#define FAT_NO_83NAME   32

Definition at line 198 of file fsck.fat.h.

◆ FAT_STATE_DIRTY

#define FAT_STATE_DIRTY   0x01

Definition at line 41 of file fsck.fat.h.

◆ VFAT_LN_ATTR

#define VFAT_LN_ATTR   (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)

Definition at line 39 of file fsck.fat.h.

Typedef Documentation

◆ DOS_FILE

typedef struct _dos_file DOS_FILE

Variable Documentation

◆ fat_table

long fat_table
extern

Definition at line 50 of file fatlabel.c.

Referenced by main(), and read_fat().

◆ list

int list

Definition at line 178 of file fsck.fat.h.

◆ mem_queue

void* mem_queue
extern

Definition at line 52 of file fatlabel.c.

Referenced by add_file(), cnv_unicode(), and main().

◆ n_files

unsigned n_files
extern

Definition at line 51 of file fatlabel.c.

Referenced by add_file(), alloc_rootdir_entry(), drop_file(), and main().

◆ no_spaces_in_sfns

int no_spaces_in_sfns

Definition at line 178 of file fsck.fat.h.

◆ only_uppercase_label

int only_uppercase_label
extern

Definition at line 53 of file fsck.fat.c.

Referenced by check_boot_label(), check_label(), get_new_label(), and main().

◆ rw

int rw
extern

Definition at line 49 of file fatlabel.c.

Referenced by fs_open(), handle_label(), handle_volid(), main(), and update_free().

◆ test

int test

Definition at line 178 of file fsck.fat.h.

◆ verbose

int verbose

Definition at line 178 of file fsck.fat.h.