Changeset 18b6a88 in mainline for uspace/srv/fs/exfat/exfat_ops.c
- Timestamp:
- 2018-04-15T09:35:04Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_ops.c
r8ebe212 r18b6a88 248 248 fn = FS_NODE(nodep); 249 249 } else { 250 skip_cache:250 skip_cache: 251 251 /* Try to allocate a new node structure. */ 252 252 fibril_mutex_unlock(&ffn_mutex); … … 533 533 (BPS(di.bs) / sizeof(exfat_dentry_t)); 534 534 exfat_idx_t *idx = exfat_idx_get_by_pos(service_id, 535 535 parentp->firstc, di.bnum * DPS(di.bs) + o); 536 536 if (!idx) { 537 537 /* … … 706 706 if (nodep->fragmented) 707 707 rc = exfat_free_clusters(bs, nodep->idx->service_id, 708 708 nodep->firstc); 709 709 else 710 710 rc = exfat_bitmap_free_clusters(bs, nodep, … … 805 805 806 806 exfat_directory_t di; 807 rc = exfat_directory_open(parentp, &di);807 rc = exfat_directory_open(parentp, &di); 808 808 if (rc != EOK) 809 809 goto error; … … 1062 1062 rc = exfat_node_get_new_by_pos(&rootp, service_id, EXFAT_ROOT_PAR, 1063 1063 EXFAT_ROOT_POS); 1064 if (rc !=EOK) {1064 if (rc != EOK) { 1065 1065 (void) block_cache_fini(service_id); 1066 1066 block_fini(service_id); … … 1183 1183 block_fini(service_id); 1184 1184 exfat_idx_fini_by_service_id(service_id); 1185 1185 return ENOTSUP; 1186 1186 } 1187 1187 } … … 1409 1409 (void) exfat_directory_close(&di); 1410 1410 1411 err:1411 err: 1412 1412 (void) exfat_node_put(fn); 1413 1413 async_answer_0(chandle, rc); 1414 1414 return rc; 1415 1415 1416 miss:1416 miss: 1417 1417 rc = exfat_directory_close(&di); 1418 1418 if (rc != EOK) … … 1423 1423 return rc != EOK ? rc : ENOENT; 1424 1424 1425 hit:1425 hit: 1426 1426 pos = di.pos; 1427 1427 rc = exfat_directory_close(&di);
Note:
See TracChangeset
for help on using the changeset viewer.