fs/fat/fatwrite: Local variable as buffer to store dir_slot entries
[oweals/u-boot.git] / include / fat.h
index 9d053e6fa67e31c8c6f10276508c1d6f4e37b1ab..e38f3808af2524463507848b89044f37433f54e8 100644 (file)
@@ -33,6 +33,8 @@
 #define FAT16BUFSIZE   (FATBUFSIZE/2)
 #define FAT32BUFSIZE   (FATBUFSIZE/4)
 
+/* Maximum number of entry for long file name according to spec */
+#define MAX_LFN_SLOT   20
 
 /* Filesystem identifiers */
 #define FAT12_SIGN     "FAT12   "
@@ -169,6 +171,7 @@ typedef struct {
        int     fatsize;        /* Size of FAT in bits */
        __u32   fatlength;      /* Length of FAT in sectors */
        __u16   fat_sect;       /* Starting sector of the FAT */
+       __u8    fat_dirty;      /* Set if fatbuf has been modified */
        __u32   rootdir_sect;   /* Start sector of root directory */
        __u16   sect_size;      /* Size of sectors in bytes */
        __u16   clust_size;     /* Size of clusters in sectors */