Changeset e54ba607 in mainline for uspace/srv/fs/minixfs/mfs_ops.c


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.