Changeset a18bd22 in mainline
- Timestamp:
- 2011-08-14T07:57:40Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 245b7945
- Parents:
- f7d90eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_fat.c
rf7d90eb ra18bd22 520 520 exfat_cluster_t count) 521 521 { 522 /* TODO */ 523 return EOK; 522 if (nodep->firstc == 0) { 523 return bitmap_alloc_clusters(bs, nodep->idx->devmap_handle, 524 &nodep->firstc, count); 525 } else { 526 exfat_cluster_t lastc, clst; 527 lastc = nodep->firstc + ROUND_UP(nodep->size, BPC(bs)) / BPC(bs) - 1; 528 529 clst = lastc+1; 530 while (bitmap_is_free(bs, nodep->idx->devmap_handle, clst) == EOK) { 531 if ((clst - lastc) == count){ 532 return bitmap_set_clusters(bs, nodep->idx->devmap_handle, 533 lastc+1, count); 534 } 535 else 536 clst++; 537 } 538 return ENOSPC; 539 } 524 540 } 525 541
Note:
See TracChangeset
for help on using the changeset viewer.