Changeset 623 for trunk/kernel/fs/ramfs.c
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/fs/ramfs.c
r602 r623 35 35 char * ramfs_root_name ) 36 36 { 37 xptr_t unused_xp; // required by vfs_add_child_in_parent() 37 xptr_t dentry_xp; // unused but required by vfs_add_child_in_parent() 38 xptr_t inode_xp; 39 vfs_inode_t * inode_ptr; 38 40 39 41 cxy_t cxy = cluster_random_select(); … … 41 43 // create VFS dentry and VFS inode for RAMFS root directory 42 44 return vfs_add_child_in_parent( cxy, 43 INODE_TYPE_DIR,44 45 FS_TYPE_RAMFS, 45 46 parent_inode_xp, 46 47 ramfs_root_name, 47 &unused_xp, 48 &unused_xp ); 48 &dentry_xp, 49 &inode_xp ); 50 // update inode type field 51 inode_ptr = GET_PTR( inode_xp ); 52 inode_ptr->type = INODE_TYPE_DIR; 49 53 } 50 54
Note: See TracChangeset
for help on using the changeset viewer.