Changes in uspace/srv/fs/fat/fat_fat.c [711e1f32:1e4cada] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
r711e1f32 r1e4cada 247 247 */ 248 248 int 249 fat_get_cluster(fat_bs_t *bs, dev_handle_t dev_handle, unsigned fatno,250 fat_cluster_t clst, fat_cluster_t*value)249 fat_get_cluster(fat_bs_t *bs, dev_handle_t dev_handle, fat_cluster_t clst, 250 fat_cluster_t *value) 251 251 { 252 252 block_t *b; 253 253 uint16_t bps; 254 254 uint16_t rscnt; 255 uint16_t sf;256 255 fat_cluster_t *cp; 257 256 int rc; … … 259 258 bps = uint16_t_le2host(bs->bps); 260 259 rscnt = uint16_t_le2host(bs->rscnt); 261 sf = uint16_t_le2host(bs->sec_per_fat); 262 263 rc = block_get(&b, dev_handle, rscnt + sf * fatno + 260 261 rc = block_get(&b, dev_handle, rscnt + 264 262 (clst * sizeof(fat_cluster_t)) / bps, BLOCK_FLAGS_NONE); 265 263 if (rc != EOK) … … 482 480 while (firstc < FAT_CLST_LAST1) { 483 481 assert(firstc >= FAT_CLST_FIRST && firstc < FAT_CLST_BAD); 484 rc = fat_get_cluster(bs, dev_handle, FAT1,firstc, &nextc);482 rc = fat_get_cluster(bs, dev_handle, firstc, &nextc); 485 483 if (rc != EOK) 486 484 return rc; … … 562 560 unsigned fatno; 563 561 564 rc = fat_get_cluster(bs, dev_handle, FAT1,lastc, &nextc);562 rc = fat_get_cluster(bs, dev_handle, lastc, &nextc); 565 563 if (rc != EOK) 566 564 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.