Changeset 4d21cf8 in mainline for uspace/srv/vfs/vfs_mount.c


Ignore:
Timestamp:
2007-11-03T14:23:57Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20614d0
Parents:
fa23560
Message:

VFS work.
Introduce the notion of VFS_PAIR which corresponds to a file system instance,
and VFS_TRIPLET, which corresponds to a file system node. Separate vfs_triplet_t
and vfs_node_t as the former one is the stateless counterpart of the latter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_mount.c

    rfa23560 r4d21cf8  
    4747
    4848atomic_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)
     49vfs_triplet_t rootfs = {
     50        .fs_handle = 0,
     51        .dev_handle = 0,
     52        .index = 0,
     53};
     54
     55static int lookup_root(int fs_handle, int dev_handle, vfs_triplet_t *root)
    5256{
    53         vfs_node_t altroot = {
     57        vfs_pair_t altroot = {
    5458                .fs_handle = fs_handle,
    5559                .dev_handle = dev_handle,
    56                 /*
    57                  * At this point, we don't know what is the index of the root
    58                  * node. Finally, that's what this function is about.
    59                  */
    6060        };
    6161
     
    139139         */
    140140        int rc;
    141         vfs_node_t mounted_root;
     141        vfs_triplet_t mounted_root;
    142142        rc = lookup_root(fs_handle, dev_handle, &mounted_root);
    143143        if (rc != EOK) {
     
    150150         * Finally, we need to resolve the path to the mountpoint.
    151151         */
    152         vfs_node_t mp;
     152        vfs_triplet_t mp;
    153153        futex_down(&rootfs_futex);
    154154        if (rootfs.fs_handle) {
Note: See TracChangeset for help on using the changeset viewer.