[VFATLIB] Upgrade fsck.fat to 4.1

Also make it easier to sync in the future.
This commit is contained in:
Pierre Schweitzer 2018-05-28 23:18:25 +02:00
parent 9f3169b295
commit 469289ed5c
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
14 changed files with 676 additions and 374 deletions

View file

@ -20,6 +20,10 @@
#ifndef _MSDOS_FS_H
#define _MSDOS_FS_H
#ifndef __REACTOS__
#include <stdint.h>
#endif
#define SECTOR_SIZE 512 /* sector size (bytes) */
#define MSDOS_DPS (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
#define MSDOS_DPS_BITS 4 /* log2(MSDOS_DPS) */
@ -43,7 +47,9 @@
#define MSDOS_DOT ". " /* ".", padded to MSDOS_NAME chars */
#define MSDOS_DOTDOT ".. " /* "..", padded to MSDOS_NAME chars */
#ifdef __REACTOS__
#include <pshpack1.h>
#endif
struct msdos_dir_entry {
uint8_t name[MSDOS_NAME]; /* name including extension */
@ -58,6 +64,8 @@ struct msdos_dir_entry {
uint32_t size; /* file size (in bytes) */
} __attribute__ ((packed));
#ifdef __REACTOS__
#include <poppack.h>
#endif
#endif /* _MSDOS_FS_H */