Changeset 953a823 in mainline for uspace/srv/fs/minixfs/mfs.h


Ignore:
Timestamp:
2011-03-17T13:41:58Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b08178
Parents:
f66d903
Message:

mount minix filesystem and add the superblock info structure to the instances list

File:
1 edited

Legend:

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

    rf66d903 r953a823  
    3535
    3636#include <minix.h>
     37#include <libblock.h>
     38#include <adt/list.h>
    3739#include "../../vfs/vfs.h"
    3840
     
    4749typedef enum {
    4850        MFS_VERSION_V1 = 1,
    49         MFS_VERSION_V1L,
    5051        MFS_VERSION_V2,
    51         MFS_VERSION_V2L,
    5252        MFS_VERSION_V3
    5353} mfs_version_t;
     54
     55/*Generic MinixFS superblock*/
     56struct mfs_sb_info {
     57        uint32_t ninodes;
     58        uint32_t nzones;
     59        unsigned long ibmap_blocks;
     60        unsigned long zbmap_blocks;
     61        unsigned long firstdatazone;
     62        unsigned long itable_size;
     63        int log2_zone_size;
     64        int ino_per_block;
     65        int dirsize;
     66        int block_size;
     67        int fs_version;
     68        uint32_t max_file_size;
     69        uint16_t magic;
     70        uint16_t state;
     71        bool long_names;
     72        bool native;
     73};
     74
     75struct mfs_instance {
     76        link_t link;
     77        devmap_handle_t handle;
     78        struct mfs_sb_info *sbi;
     79};
    5480
    5581extern void mfs_mounted(ipc_callid_t rid, ipc_call_t *request);
Note: See TracChangeset for help on using the changeset viewer.