Changeset 0a51029f in mainline
- Timestamp:
- 2011-05-01T07:02:34Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b5db2ae
- Parents:
- aa2ea13
- Location:
- uspace/srv/fs/fat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
raa2ea13 r0a51029f 474 474 int rc; 475 475 476 for (fatno = FAT1 + 1; fatno < bs->fatcnt; fatno++) {476 for (fatno = FAT1 + 1; fatno < FATCNT(bs); fatno++) { 477 477 for (c = 0; c < nclsts; c++) { 478 478 rc = fat_set_cluster(bs, devmap_handle, fatno, lifo[c], … … 584 584 if (rc != EOK) 585 585 return rc; 586 for (fatno = FAT1; fatno < bs->fatcnt; fatno++) {586 for (fatno = FAT1; fatno < FATCNT(bs); fatno++) { 587 587 rc = fat_set_cluster(bs, devmap_handle, fatno, firstc, 588 588 FAT_CLST_RES0); … … 630 630 } 631 631 632 for (fatno = FAT1; fatno < bs->fatcnt; fatno++) {632 for (fatno = FAT1; fatno < FATCNT(bs); fatno++) { 633 633 rc = fat_set_cluster(bs, nodep->idx->devmap_handle, 634 634 fatno, lastc, mcl); … … 683 683 684 684 /* Terminate the cluster chain in all copies of FAT. */ 685 for (fatno = FAT1; fatno < bs->fatcnt; fatno++) {685 for (fatno = FAT1; fatno < FATCNT(bs); fatno++) { 686 686 rc = fat_set_cluster(bs, devmap_handle, fatno, lcl, 687 687 clst_last1); -
uspace/srv/fs/fat/fat_ops.c
raa2ea13 r0a51029f 1055 1055 1056 1056 rootp->type = FAT_DIRECTORY; 1057 rootp->firstc = FAT_CLST_ROOT;1057 rootp->firstc = (FAT_IS_FAT32(bs) ? bs->fat32.root_cluster : FAT_CLST_ROOT); 1058 1058 rootp->refcnt = 1; 1059 1059 rootp->lnkcnt = 0; /* FS root is not linked */ 1060 rootp->size = RDE(bs) * sizeof(fat_dentry_t); 1060 rootp->size = (FAT_IS_FAT32(bs) ? SPC(bs)*BPS(bs) : 1061 RDE(bs) * sizeof(fat_dentry_t)); 1061 1062 rootp->idx = ridxp; 1062 1063 ridxp->nodep = rootp;
Note:
See TracChangeset
for help on using the changeset viewer.