Changeset 4d21cf8 in mainline for uspace/srv/vfs/vfs_mount.c
- Timestamp:
- 2007-11-03T14:23:57Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 20614d0
- Parents:
- fa23560
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_mount.c
rfa23560 r4d21cf8 47 47 48 48 atomic_t rootfs_futex = FUTEX_INITIALIZER; 49 vfs_node_t rootfs = { 0 }; 50 51 static int lookup_root(int fs_handle, int dev_handle, vfs_node_t *root) 49 vfs_triplet_t rootfs = { 50 .fs_handle = 0, 51 .dev_handle = 0, 52 .index = 0, 53 }; 54 55 static int lookup_root(int fs_handle, int dev_handle, vfs_triplet_t *root) 52 56 { 53 vfs_ node_t altroot = {57 vfs_pair_t altroot = { 54 58 .fs_handle = fs_handle, 55 59 .dev_handle = dev_handle, 56 /*57 * At this point, we don't know what is the index of the root58 * node. Finally, that's what this function is about.59 */60 60 }; 61 61 … … 139 139 */ 140 140 int rc; 141 vfs_ node_t mounted_root;141 vfs_triplet_t mounted_root; 142 142 rc = lookup_root(fs_handle, dev_handle, &mounted_root); 143 143 if (rc != EOK) { … … 150 150 * Finally, we need to resolve the path to the mountpoint. 151 151 */ 152 vfs_ node_t mp;152 vfs_triplet_t mp; 153 153 futex_down(&rootfs_futex); 154 154 if (rootfs.fs_handle) {
Note:
See TracChangeset
for help on using the changeset viewer.