Changeset d2f5148 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c


Ignore:
Timestamp:
2012-04-14T17:16:48Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4358513
Parents:
1df3f57a
Message:

ew additional comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    r1df3f57a rd2f5148  
    250250        }
    251251
     252        // Try to find entry
    252253        ext4_directory_search_result_t result;
    253254        rc = ext4_directory_find_entry(&result, eparent->inode_ref, component);
     
    260261        }
    261262
     263        // Load node from search result
    262264        uint32_t inode = ext4_directory_entry_ll_get_inode(result.dentry);
    263 
    264265        rc = ext4fs_node_get_core(rfn, eparent->instance, inode);
    265266        if (rc != EOK) {
     
    267268        }
    268269
     270        // Destroy search result structure
    269271        rc = ext4_directory_destroy_result(&result);
    270272        if (rc != EOK) {
     
    335337        }
    336338
     339        // Prepare new fs_node and initialize
    337340        fs_node_t *fs_node = malloc(sizeof(fs_node_t));
    338341        if (fs_node == NULL) {
     
    343346        fs_node_initialize(fs_node);
    344347
    345         // Load inode from filesystem
     348        // Load i-node from filesystem
    346349        ext4_inode_ref_t *inode_ref;
    347350        rc = ext4_filesystem_get_inode_ref(inst->filesystem, index, &inode_ref);
     
    457460        int rc;
    458461
    459         // Allocate node structures
     462        // Allocate enode
    460463        ext4fs_node_t *enode;
    461464        enode = malloc(sizeof(ext4fs_node_t));
     
    464467        }
    465468
     469        // Allocate fs_node
    466470        fs_node_t *fs_node;
    467471        fs_node = malloc(sizeof(fs_node_t));
Note: See TracChangeset for help on using the changeset viewer.