Changeset 63bcbbc in mainline for uspace/srv/fs/exfat/exfat_ops.c
- Timestamp:
- 2011-12-12T20:23:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1df224c
- Parents:
- bf84871 (diff), 80ec9b8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_ops.c
rbf84871 r63bcbbc 657 657 return rc; 658 658 } 659 660 rc = exfat_zero_cluster(bs, service_id, nodep->firstc); 661 if (rc != EOK) { 662 (void) exfat_node_put(FS_NODE(nodep)); 663 return rc; 664 } 665 659 666 nodep->size = BPC(bs); 660 667 } else { … … 739 746 */ 740 747 rc = exfat_directory_write_file(&di, name); 741 if (rc != EOK) 742 return rc; 748 if (rc != EOK) { 749 (void) exfat_directory_close(&di); 750 fibril_mutex_unlock(&parentp->idx->lock); 751 return rc; 752 } 743 753 rc = exfat_directory_close(&di); 744 if (rc != EOK) 745 return rc; 754 if (rc != EOK) { 755 fibril_mutex_unlock(&parentp->idx->lock); 756 return rc; 757 } 746 758 747 759 fibril_mutex_unlock(&parentp->idx->lock); … … 1258 1270 exfat_directory_t di; 1259 1271 rc = exfat_directory_open(nodep, &di); 1260 if (rc != EOK) goto err; 1272 if (rc != EOK) 1273 goto err; 1274 1261 1275 rc = exfat_directory_seek(&di, pos); 1262 1276 if (rc != EOK) { … … 1268 1282 &df, &ds); 1269 1283 if (rc == EOK) 1270 goto hit; 1271 if (rc == ENOENT) 1272 goto miss; 1284 goto hit; 1285 else if (rc == ENOENT) 1286 goto miss; 1287 1288 (void) exfat_directory_close(&di); 1273 1289 1274 1290 err: … … 1279 1295 miss: 1280 1296 rc = exfat_directory_close(&di); 1281 if (rc !=EOK)1297 if (rc != EOK) 1282 1298 goto err; 1283 1299 rc = exfat_node_put(fn); … … 1397 1413 1398 1414 (void) async_data_write_finalize(callid, 1399 1415 b->data + pos % BPS(bs), bytes); 1400 1416 b->dirty = true; /* need to sync block */ 1401 1417 rc = block_put(b);
Note:
See TracChangeset
for help on using the changeset viewer.