Changeset 1433ecda in mainline for uspace/srv/fs/fat
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/srv/fs/fat
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat.h
r47b2d7e3 r1433ecda 105 105 /** Boot sector signature. */ 106 106 uint16_t signature; 107 } __attribute__ 107 } __attribute__((packed)); 108 108 struct { 109 109 /* FAT32 only */ … … 136 136 /** Signature. */ 137 137 uint16_t signature; 138 } __attribute__ 138 } __attribute__((packed)) fat32; 139 139 }; 140 } __attribute__ 140 } __attribute__((packed)) fat_bs_t; 141 141 142 142 #define FAT32_FSINFO_SIG1 "RRaA" … … 152 152 uint8_t res2[12]; 153 153 uint8_t sig3[4]; 154 } __attribute__ 154 } __attribute__((packed)) fat32_fsinfo_t; 155 155 156 156 typedef enum { -
uspace/srv/fs/fat/fat_dentry.c
r47b2d7e3 r1433ecda 382 382 { 383 383 wchar_t ch; 384 size_t offset =0;384 size_t offset = 0; 385 385 bool result = true; 386 386 -
uspace/srv/fs/fat/fat_dentry.h
r47b2d7e3 r1433ecda 117 117 uint16_t eaidx; /* FAT12/FAT16 */ 118 118 uint16_t firstc_hi; /* FAT32 */ 119 } __attribute__ 119 } __attribute__((packed)); 120 120 uint16_t mtime; 121 121 uint16_t mdate; … … 123 123 uint16_t firstc; /* FAT12/FAT16 */ 124 124 uint16_t firstc_lo; /* FAT32 */ 125 } __attribute__ 125 } __attribute__((packed)); 126 126 uint32_t size; 127 } __attribute__ 127 } __attribute__((packed)); 128 128 struct { 129 129 uint8_t order; … … 135 135 uint16_t firstc_lo; /* MUST be 0 */ 136 136 uint16_t part3[FAT_LFN_PART3_SIZE]; 137 } __attribute__ 138 } __attribute__ 137 } __attribute__((packed)) lfn; 138 } __attribute__((packed)) fat_dentry_t; 139 139 140 140 extern int fat_dentry_namecmp(char *, const char *); -
uspace/srv/fs/fat/fat_directory.c
r47b2d7e3 r1433ecda 383 383 /* Copy number */ 384 384 size_t offset; 385 if (str_size(name) +str_size(number) + 1 > FAT_NAME_LEN)385 if (str_size(name) + str_size(number) + 1 > FAT_NAME_LEN) 386 386 offset = FAT_NAME_LEN - str_size(number) - 1; 387 387 else
Note:
See TracChangeset
for help on using the changeset viewer.