Changeset 1b20da0 in mainline for uspace/srv/fs/exfat/exfat_fat.c
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_fat.c
rdf6ded8 r1b20da0 74 74 */ 75 75 errno_t 76 exfat_cluster_walk(exfat_bs_t *bs, service_id_t service_id, 76 exfat_cluster_walk(exfat_bs_t *bs, service_id_t service_id, 77 77 exfat_cluster_t firstc, exfat_cluster_t *lastc, uint32_t *numc, 78 78 uint32_t max_clusters) … … 141 141 * when fortunately we have the last cluster number cached. 142 142 */ 143 return block_get(block, nodep->idx->service_id, DATA_FS(bs) + 144 (nodep->lastc_cached_value-EXFAT_CLST_FIRST)*SPC(bs) + 143 return block_get(block, nodep->idx->service_id, DATA_FS(bs) + 144 (nodep->lastc_cached_value-EXFAT_CLST_FIRST)*SPC(bs) + 145 145 (bn % SPC(bs)), flags); 146 146 } … … 187 187 */ 188 188 errno_t 189 exfat_block_get_by_clst(block_t **block, exfat_bs_t *bs, 189 exfat_block_get_by_clst(block_t **block, exfat_bs_t *bs, 190 190 service_id_t service_id, bool fragmented, exfat_cluster_t fcl, 191 191 exfat_cluster_t *clp, aoff64_t bn, int flags) … … 200 200 201 201 if (!fragmented) { 202 rc = block_get(block, service_id, DATA_FS(bs) + 202 rc = block_get(block, service_id, DATA_FS(bs) + 203 203 (fcl - EXFAT_CLST_FIRST)*SPC(bs) + bn, flags); 204 204 } else { … … 209 209 assert(clusters == max_clusters); 210 210 211 rc = block_get(block, service_id, DATA_FS(bs) + 211 rc = block_get(block, service_id, DATA_FS(bs) + 212 212 (c - EXFAT_CLST_FIRST) * SPC(bs) + (bn % SPC(bs)), flags); 213 213
Note:
See TracChangeset
for help on using the changeset viewer.