Changeset 9f64c1e in mainline
- Timestamp:
- 2017-07-16T17:55:23Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ef1fade
- Parents:
- 5772aa1
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/include/std/fat.h
r5772aa1 r9f64c1e 117 117 /** Signature. */ 118 118 uint16_t signature; 119 } fat32 __attribute__ ((packed));119 } __attribute__ ((packed)) fat32; 120 120 }; 121 121 } __attribute__ ((packed)) fat_bs_t; -
uspace/lib/label/src/mbr.c
r5772aa1 r9f64c1e 151 151 /* 152 152 * We can't really tell whether this is an MBR. Make sure 153 * this is not actually the BR of a FAT file system153 * this is not actually the BR of a 12/16-bit FAT file system 154 154 */ 155 155 if (bs->type[0] == 'F' && bs->type[1] == 'A' && bs->type[2] == 'T') { 156 rc = EIO; 157 goto error; 158 } 159 160 /* 161 * Or a 32-bit FAT file system 162 */ 163 if (bs->fat32.type[0] == 'F' && bs->fat32.type[1] == 'A' && 164 bs->fat32.type[2] == 'T') { 156 165 rc = EIO; 157 166 goto error; -
uspace/srv/fs/fat/fat.h
r5772aa1 r9f64c1e 136 136 /** Signature. */ 137 137 uint16_t signature; 138 } fat32 __attribute__ ((packed));138 } __attribute__ ((packed)) fat32; 139 139 }; 140 140 } __attribute__ ((packed)) fat_bs_t; -
uspace/srv/fs/fat/fat_ops.c
r5772aa1 r9f64c1e 1053 1053 1054 1054 rc = fat_directory_open(nodep, &di); 1055 if (rc != EOK) 1056 return rc; 1055 if (rc != EOK) { 1056 fat_fs_close(service_id, rfn); 1057 return rc; 1058 } 1057 1059 1058 1060 rc = fat_directory_vollabel_get(&di, label); 1059 1061 if (rc != EOK) { 1060 if (rc != ENOENT) 1062 if (rc != ENOENT) { 1063 fat_fs_close(service_id, rfn); 1061 1064 return rc; 1065 } 1062 1066 1063 1067 label[0] = '\0';
Note:
See TracChangeset
for help on using the changeset viewer.