mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
[VFATLIB] Upgrade fsck.fat to 4.1
Also make it easier to sync in the future.
This commit is contained in:
parent
9f3169b295
commit
469289ed5c
14 changed files with 676 additions and 374 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue