Changeset e54ba607 in mainline


Ignore:
Timestamp:
2011-03-17T20:10:42Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a58ae2
Parents:
3b08178
Message:

link mfs_device_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

    r3b08178 re54ba607  
    8888};
    8989
     90/*MinixFS node in core*/
     91struct mfs_node {
     92        union {
     93                struct mfs_inode *ino;
     94                struct mfs2_inode *ino2;
     95        };
     96
     97        struct mfs_instance *instance;
     98};
     99
    90100extern void mfs_mounted(ipc_callid_t rid, ipc_call_t *request);
    91101extern void mfs_mount(ipc_callid_t rid, ipc_call_t *request);
     102extern devmap_handle_t mfs_device_get(fs_node_t *fsnode);
    92103extern int  mfs_get_instance(devmap_handle_t handle,
    93104                                struct mfs_instance **instance);
  • uspace/srv/fs/minixfs/mfs_ops.c

    r3b08178 re54ba607  
    3737#include "mfs.h"
    3838#include "mfs_utils.h"
    39 #include "../../vfs/vfs.h"
    4039
    4140static bool check_magic_number(uint16_t magic, bool *native,
     
    4544static FIBRIL_MUTEX_INITIALIZE(inst_list_mutex);
    4645
    47 libfs_ops_t mfs_libfs_ops;
     46libfs_ops_t mfs_libfs_ops = {
     47        .device_get = mfs_device_get
     48};
    4849
    4950void mfs_mounted(ipc_callid_t rid, ipc_call_t *request)
     
    195196}
    196197
     198devmap_handle_t mfs_device_get(fs_node_t *fsnode)
     199{
     200        struct mfs_node *node = fsnode->data;
     201        return node->instance->handle;
     202}
     203
    197204/*
    198205 * Find a filesystem instance given the devmap handle
Note: See TracChangeset for help on using the changeset viewer.