Changeset 1433ecda in mainline for uspace/srv/fs/exfat
- 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/exfat
- Files:
-
- 3 edited
-
exfat.h (modified) (1 diff)
-
exfat_bitmap.c (modified) (3 diffs)
-
exfat_dentry.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat.h
r47b2d7e3 r1433ecda 81 81 uint8_t minor; 82 82 uint8_t major; 83 } __attribute__ ((packed)) version;83 } __attribute__((packed)) version; 84 84 uint16_t volume_flags; /* 0x6A volume state flags */ 85 85 uint8_t bytes_per_sector; /* 0x6C sector size as (1 << n) */ -
uspace/srv/fs/exfat/exfat_bitmap.c
r47b2d7e3 r1433ecda 167 167 clst = firstc; 168 168 169 while (clst < firstc + count ) {169 while (clst < firstc + count) { 170 170 rc = exfat_bitmap_set_cluster(bs, service_id, clst); 171 171 if (rc != EOK) { … … 211 211 endc++; 212 212 } 213 startc = endc +1;213 startc = endc + 1; 214 214 } 215 215 return ENOSPC; … … 229 229 clst = lastc + 1; 230 230 while (exfat_bitmap_is_free(bs, nodep->idx->service_id, clst) == EOK) { 231 if (clst - lastc == count) {231 if (clst - lastc == count) { 232 232 return exfat_bitmap_set_clusters(bs, nodep->idx->service_id, 233 233 lastc + 1, count); -
uspace/srv/fs/exfat/exfat_dentry.h
r47b2d7e3 r1433ecda 64 64 uint16_t label[11]; 65 65 uint8_t _reserved[8]; 66 } __attribute__ ((packed)) exfat_vollabel_dentry_t;66 } __attribute__((packed)) exfat_vollabel_dentry_t; 67 67 68 68 typedef struct { … … 71 71 uint32_t firstc; 72 72 uint64_t size; 73 } __attribute__ ((packed)) exfat_bitmap_dentry_t;73 } __attribute__((packed)) exfat_bitmap_dentry_t; 74 74 75 75 typedef struct { … … 79 79 uint32_t firstc; 80 80 uint64_t size; 81 } __attribute__ ((packed)) exfat_uctable_dentry_t;81 } __attribute__((packed)) exfat_uctable_dentry_t; 82 82 83 83 typedef struct { … … 87 87 uint8_t guid[16]; 88 88 uint8_t _reserved[10]; 89 } __attribute__ ((packed)) exfat_guid_dentry_t;89 } __attribute__((packed)) exfat_guid_dentry_t; 90 90 91 91 typedef struct { … … 103 103 uint8_t atime_tz; 104 104 uint8_t _reserved2[7]; 105 } __attribute__ ((packed)) exfat_file_dentry_t;105 } __attribute__((packed)) exfat_file_dentry_t; 106 106 107 107 typedef struct { … … 115 115 uint32_t firstc; 116 116 uint64_t data_size; 117 } __attribute__ ((packed)) exfat_stream_dentry_t;117 } __attribute__((packed)) exfat_stream_dentry_t; 118 118 119 119 typedef struct { 120 120 uint8_t flags; 121 121 uint16_t name[EXFAT_NAME_PART_LEN]; 122 } __attribute__ ((packed)) exfat_name_dentry_t;122 } __attribute__((packed)) exfat_name_dentry_t; 123 123 124 124 … … 134 134 exfat_name_dentry_t name; 135 135 }; 136 } __attribute__ ((packed)) exfat_dentry_t;136 } __attribute__((packed)) exfat_dentry_t; 137 137 138 138
Note:
See TracChangeset
for help on using the changeset viewer.
