Changeset 4f1c0b4 in mainline for uspace/srv/fs/fat/fat_ops.c
- Timestamp:
- 2008-11-05T22:28:54Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d20ea8
- Parents:
- 8334a427
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r8334a427 r4f1c0b4 114 114 fat_node_t *nodep = NULL; 115 115 unsigned bps; 116 unsigned spc; 116 117 unsigned dps; 117 118 … … 165 166 bs = block_bb_get(idxp->dev_handle); 166 167 bps = uint16_t_le2host(bs->bps); 168 spc = bs->spc; 167 169 dps = bps / sizeof(fat_dentry_t); 168 170 … … 185 187 * size of the directory by walking the FAT. 186 188 */ 187 nodep->size = bps * _fat_blcks_get(bs, idxp->dev_handle,188 uint16_t_le2host(d->firstc) , NULL);189 nodep->size = bps * spc * fat_clusters_get(bs, idxp->dev_handle, 190 uint16_t_le2host(d->firstc)); 189 191 } else { 190 192 nodep->type = FAT_FILE;
Note:
See TracChangeset
for help on using the changeset viewer.