Changeset 6da81e0 in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2010-07-28T10:12:43Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dba4a23
Parents:
7a23d60
Message:

Modify _fat_block_get() to return the "current" cluster number to the caller.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r7a23d60 r6da81e0  
    121121        /* Read the block that contains the dentry of interest. */
    122122        rc = _fat_block_get(&b, bs, node->idx->dev_handle, node->idx->pfc,
    123             (node->idx->pdi * sizeof(fat_dentry_t)) / BPS(bs),
     123            NULL, (node->idx->pdi * sizeof(fat_dentry_t)) / BPS(bs),
    124124            BLOCK_FLAGS_NONE);
    125125        if (rc != EOK)
     
    299299
    300300        /* Read the block that contains the dentry of interest. */
    301         rc = _fat_block_get(&b, bs, idxp->dev_handle, idxp->pfc,
     301        rc = _fat_block_get(&b, bs, idxp->dev_handle, idxp->pfc, NULL,
    302302            (idxp->pdi * sizeof(fat_dentry_t)) / BPS(bs), BLOCK_FLAGS_NONE);
    303303        if (rc != EOK) {
     
    799799
    800800        rc = _fat_block_get(&b, bs, childp->idx->dev_handle, childp->idx->pfc,
    801             (childp->idx->pdi * sizeof(fat_dentry_t)) / BPS(bs),
     801            NULL, (childp->idx->pdi * sizeof(fat_dentry_t)) / BPS(bs),
    802802            BLOCK_FLAGS_NONE);
    803803        if (rc != EOK)
     
    13811381                        return;
    13821382                }
    1383                 rc = _fat_block_get(&b, bs, dev_handle, lcl,
     1383                rc = _fat_block_get(&b, bs, dev_handle, lcl, NULL,
    13841384                    (pos / BPS(bs)) % SPC(bs), flags);
    13851385                if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.