Changeset d2f5148 in mainline
- Timestamp:
- 2012-04-14T17:16:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4358513
- Parents:
- 1df3f57a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/ext4fs/ext4fs_ops.c
r1df3f57a rd2f5148 250 250 } 251 251 252 // Try to find entry 252 253 ext4_directory_search_result_t result; 253 254 rc = ext4_directory_find_entry(&result, eparent->inode_ref, component); … … 260 261 } 261 262 263 // Load node from search result 262 264 uint32_t inode = ext4_directory_entry_ll_get_inode(result.dentry); 263 264 265 rc = ext4fs_node_get_core(rfn, eparent->instance, inode); 265 266 if (rc != EOK) { … … 267 268 } 268 269 270 // Destroy search result structure 269 271 rc = ext4_directory_destroy_result(&result); 270 272 if (rc != EOK) { … … 335 337 } 336 338 339 // Prepare new fs_node and initialize 337 340 fs_node_t *fs_node = malloc(sizeof(fs_node_t)); 338 341 if (fs_node == NULL) { … … 343 346 fs_node_initialize(fs_node); 344 347 345 // Load i node from filesystem348 // Load i-node from filesystem 346 349 ext4_inode_ref_t *inode_ref; 347 350 rc = ext4_filesystem_get_inode_ref(inst->filesystem, index, &inode_ref); … … 457 460 int rc; 458 461 459 // Allocate node structures462 // Allocate enode 460 463 ext4fs_node_t *enode; 461 464 enode = malloc(sizeof(ext4fs_node_t)); … … 464 467 } 465 468 469 // Allocate fs_node 466 470 fs_node_t *fs_node; 467 471 fs_node = malloc(sizeof(fs_node_t));
Note:
See TracChangeset
for help on using the changeset viewer.