Changeset e402382 in mainline for uspace/srv/fs/fat/fat_ops.c
- Timestamp:
- 2009-09-03T13:24:36Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dc87ad11
- Parents:
- 684b655
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r684b655 re402382 220 220 * size of the directory by walking the FAT. 221 221 */ 222 nodep->size = bps * spc * fat_clusters_get(bs, idxp->dev_handle, 222 uint16_t clusters; 223 rc = fat_clusters_get(&clusters, bs, idxp->dev_handle, 223 224 uint16_t_le2host(d->firstc)); 225 assert(rc == EOK); 226 nodep->size = bps * spc * clusters; 224 227 } else { 225 228 nodep->type = FAT_FILE; … … 1189 1192 } else { 1190 1193 fat_cluster_t lastc; 1191 (void) fat_cluster_walk(bs, dev_handle, nodep->firstc, 1192 &lastc, (size - 1) / bpc); 1194 rc = fat_cluster_walk(bs, dev_handle, nodep->firstc, 1195 &lastc, NULL, (size - 1) / bpc); 1196 if (rc != EOK) 1197 goto out; 1193 1198 fat_chop_clusters(bs, nodep, lastc); 1194 1199 } … … 1197 1202 rc = EOK; 1198 1203 } 1204 out: 1199 1205 fat_node_put(fn); 1200 1206 ipc_answer_0(rid, rc);
Note:
See TracChangeset
for help on using the changeset viewer.