Changeset 1b20da0 in mainline for uspace/srv/fs/exfat/exfat_ops.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_ops.c
rdf6ded8 r1b20da0 139 139 ds.data_size = node->size; 140 140 141 exfat_directory_open_parent(&di, node->idx->service_id, node->idx->pfc, 141 exfat_directory_open_parent(&di, node->idx->service_id, node->idx->pfc, 142 142 node->idx->parent_fragmented); 143 143 rc = exfat_directory_seek(&di, node->idx->pdi); … … 269 269 } 270 270 271 static errno_t exfat_node_get_new_by_pos(exfat_node_t **nodepp, 271 static errno_t exfat_node_get_new_by_pos(exfat_node_t **nodepp, 272 272 service_id_t service_id, exfat_cluster_t pfc, unsigned pdi) 273 273 { … … 320 320 return rc; 321 321 322 exfat_directory_open_parent(&di, idxp->service_id, idxp->pfc, 322 exfat_directory_open_parent(&di, idxp->service_id, idxp->pfc, 323 323 idxp->parent_fragmented); 324 324 rc = exfat_directory_seek(&di, idxp->pdi); … … 338 338 case EXFAT_DENTRY_FILE: 339 339 nodep->type = 340 (uint16_t_le2host(d->file.attr) & EXFAT_ATTR_SUBDIR) ? 340 (uint16_t_le2host(d->file.attr) & EXFAT_ATTR_SUBDIR) ? 341 341 EXFAT_DIRECTORY : EXFAT_FILE; 342 342 rc = exfat_directory_next(&di); … … 708 708 nodep->firstc); 709 709 else 710 rc = exfat_bitmap_free_clusters(bs, nodep, 710 rc = exfat_bitmap_free_clusters(bs, nodep, 711 711 ROUND_UP(nodep->size, BPC(bs)) / BPC(bs)); 712 } 712 } 713 713 714 714 exfat_idx_destroy(nodep->idx); … … 1060 1060 1061 1061 /* Initialize the root node. */ 1062 rc = exfat_node_get_new_by_pos(&rootp, service_id, EXFAT_ROOT_PAR, 1062 rc = exfat_node_get_new_by_pos(&rootp, service_id, EXFAT_ROOT_PAR, 1063 1063 EXFAT_ROOT_POS); 1064 1064 if (rc!=EOK) { … … 1110 1110 } 1111 1111 1112 rc = exfat_node_get_new_by_pos(&bitmapp, service_id, rootp->firstc, 1112 rc = exfat_node_get_new_by_pos(&bitmapp, service_id, rootp->firstc, 1113 1113 di.pos); 1114 1114 if (rc != EOK) { … … 1151 1151 } 1152 1152 1153 rc = exfat_node_get_new_by_pos(&uctablep, service_id, rootp->firstc, 1153 rc = exfat_node_get_new_by_pos(&uctablep, service_id, rootp->firstc, 1154 1154 di.pos); 1155 1155 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.