Changeset fe4ac35 in mainline


Ignore:
Timestamp:
2011-03-18T19:56:21Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d6ab10
Parents:
44c0f5b
Message:

Link the mfs_root_get() function to the libfs_ops structure

Location:
uspace/srv/fs/minixfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs.h

    r44c0f5b rfe4ac35  
    103103extern bool mfs_is_directory(fs_node_t *fsnode);
    104104extern bool mfs_is_file(fs_node_t *fsnode);
     105extern int mfs_root_get(fs_node_t **rfn, devmap_handle_t handle);
    105106extern devmap_handle_t mfs_device_get(fs_node_t *fsnode);
    106107extern int mfs_instance_get(devmap_handle_t handle,
  • uspace/srv/fs/minixfs/mfs_ops.c

    r44c0f5b rfe4ac35  
    4747
    4848libfs_ops_t mfs_libfs_ops = {
     49        .root_get = mfs_root_get,
    4950        .device_get = mfs_device_get,
    5051        .is_directory = mfs_is_directory,
     
    294295}
    295296
     297int mfs_root_get(fs_node_t **rfn, devmap_handle_t handle)
     298{
     299        return mfs_node_get(rfn, handle, MFS_ROOT_INO);
     300}
     301
    296302/*
    297303 * Find a filesystem instance given the devmap handle
Note: See TracChangeset for help on using the changeset viewer.