Changes in uspace/srv/fs/exfat/exfat_directory.c [92d9406:04aaed8f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
r92d9406 r04aaed8f 112 112 rc = block_put(di->b); 113 113 di->b = NULL; 114 if (rc != EOK)115 return rc;116 114 } 117 115 if (!di->b) { … … 268 266 if (idx == 2 || idx == 3) 269 267 continue; 270 checksum = ((checksum << 15) | (checksum >> 1)) + 271 (uint16_t)bytes[idx]; 268 checksum = ((checksum << 15) | (checksum >> 1)) + (uint16_t)bytes[idx]; 272 269 } 273 270 return checksum; … … 313 310 array[1].stream.valid_data_size = host2uint64_t_le(ds->valid_data_size); 314 311 array[1].stream.data_size = host2uint64_t_le(ds->data_size); 315 array[0].file.checksum = 316 host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array, 312 array[0].file.checksum = host2uint16_t_le(exfat_directory_set_checksum((uint8_t *)array, 317 313 count * sizeof(exfat_dentry_t))); 318 314 … … 356 352 uctablep = EXFAT_NODE(fn); 357 353 358 uctable_chars = ALIGN_DOWN(uctablep->size, 359 sizeof(uint16_t)) / sizeof(uint16_t); 354 uctable_chars = ALIGN_DOWN(uctablep->size, sizeof(uint16_t)) / sizeof(uint16_t); 360 355 uctable = (uint16_t *) malloc(uctable_chars * sizeof(uint16_t)); 361 356 rc = exfat_read_uctable(di->bs, uctablep, (uint8_t *)uctable); … … 422 417 return rc; 423 418 424 if (i == df.file.count - 2) { 425 chars = ds.stream.name_size - 426 EXFAT_NAME_PART_LEN*(df.file.count - 2); 427 } 428 419 if (i == df.file.count - 2) 420 chars = ds.stream.name_size - EXFAT_NAME_PART_LEN*(df.file.count - 2); 429 421 rc = exfat_directory_get(di, &de); 430 422 if (rc != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.