Rev 2552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2552 | Rev 2587 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | * @param altroot If non-empty, will be used instead of rootfs as the root |
59 | * @param altroot If non-empty, will be used instead of rootfs as the root |
60 | * of the whole VFS tree. |
60 | * of the whole VFS tree. |
61 | * |
61 | * |
62 | * @return EOK on success or an error code from errno.h. |
62 | * @return EOK on success or an error code from errno.h. |
63 | */ |
63 | */ |
64 | int vfs_lookup_internal(char *path, size_t len, vfs_node_t *result, |
64 | int vfs_lookup_internal(char *path, size_t len, vfs_triplet_t *result, |
65 | vfs_node_t *altroot) |
65 | vfs_pair_t *altroot) |
66 | { |
66 | { |
67 | vfs_node_t *root; |
67 | vfs_pair_t *root; |
68 | 68 | ||
69 | if (!len) |
69 | if (!len) |
70 | return EINVAL; |
70 | return EINVAL; |
71 | 71 | ||
72 | if (altroot) |
72 | if (altroot) |
73 | root = altroot; |
73 | root = altroot; |
74 | else |
74 | else |
75 | root = &rootfs; |
75 | root = (vfs_pair_t *) &rootfs; |
76 | 76 | ||
77 | if (!root->fs_handle) |
77 | if (!root->fs_handle) |
78 | return ENOENT; |
78 | return ENOENT; |
79 | 79 | ||
80 | futex_down(&plb_futex); |
80 | futex_down(&plb_futex); |