Changeset 18b6a88 in mainline for uspace/srv/fs/fat/fat_fat.c
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
r8ebe212 r18b6a88 249 249 for (o = nodep->size; o < pos && o < boundary; 250 250 o = ALIGN_DOWN(o + BPS(bs), BPS(bs))) { 251 251 int flags = (o % BPS(bs) == 0) ? 252 252 BLOCK_FLAGS_NOREAD : BLOCK_FLAGS_NONE; 253 253 rc = fat_block_get(&b, bs, nodep, o / BPS(bs), flags); … … 324 324 * first byte of next sector 325 325 */ 326 byte2 = ((uint8_t *) b1->data)[0];326 byte2 = ((uint8_t *) b1->data)[0]; 327 327 328 328 rc = block_put(b1); … … 469 469 return rc; 470 470 471 byte1 = ((uint8_t *) b->data)[offset % BPS(bs)];471 byte1 = ((uint8_t *) b->data)[offset % BPS(bs)]; 472 472 bool border = false; 473 473 /* This cluster access spans a sector boundary. */ … … 495 495 } 496 496 } else 497 byte2 = ((uint8_t *) b->data)[(offset % BPS(bs)) + 1];497 byte2 = ((uint8_t *) b->data)[(offset % BPS(bs)) + 1]; 498 498 499 499 if (IS_ODD(clst)) {
Note:
See TracChangeset
for help on using the changeset viewer.