Ignore:
File:
1 edited

Legend:

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

    r802f0b7 r5bf76c1  
    4848#define NAME            "mfs"
    4949
    50 /* #define DEBUG_MODE */
     50//#define DEBUG_MODE
    5151
    5252#define min(a, b)       ((a) < (b) ? (a) : (b))
     
    7171} mfs_version_t;
    7272
    73 /* Generic MinixFS superblock */
     73/*Generic MinixFS superblock*/
    7474struct mfs_sb_info {
    7575        uint32_t ninodes;
     
    8484        uint16_t state;
    8585
    86         /* The following fields do not exist on disk but only in memory */
     86        /*The following fields do not exist on disk but only in memory*/
    8787        unsigned long itable_size;
    8888        mfs_version_t fs_version;
     
    9797};
    9898
    99 /* Generic MinixFS inode */
     99/*Generic MinixFS inode*/
    100100struct mfs_ino_info {
    101101        uint16_t        i_mode;
     
    107107        int32_t         i_mtime;
    108108        int32_t         i_ctime;
    109         /* Block numbers for direct zones */
     109        /*Block numbers for direct zones*/
    110110        uint32_t        i_dzone[V2_NR_DIRECT_ZONES];
    111         /* Block numbers for indirect zones */
     111        /*Block numbers for indirect zones*/
    112112        uint32_t        i_izone[V2_NR_INDIRECT_ZONES];
    113113
    114         /* The following fields do not exist on disk but only in memory */
     114        /*The following fields do not exist on disk but only in memory*/
    115115        bool dirty;
    116116        fs_index_t index;
    117117};
    118118
    119 /* Generic MFS directory entry */
     119/*Generic MFS directory entry*/
    120120struct mfs_dentry_info {
    121121        uint32_t d_inum;
    122122        char d_name[MFS3_MAX_NAME_LEN + 1];
    123123
    124         /* The following fields do not exist on disk but only in memory */
    125 
    126         /* Index of the dentry in the list */
     124        /*The following fields do not exist on disk but only in memory*/
     125
     126        /*Index of the dentry in the list*/
    127127        unsigned index;
    128         /* Pointer to the node at witch the dentry belongs */
     128        /*Pointer to the node at witch the dentry belongs*/
    129129        struct mfs_node *node;
    130130};
     
    136136};
    137137
    138 /* MinixFS node in core */
     138/*MinixFS node in core*/
    139139struct mfs_node {
    140140        struct mfs_ino_info *ino_i;
     
    145145};
    146146
    147 /* mfs_ops.c */
     147/*mfs_ops.c*/
    148148extern vfs_out_ops_t mfs_ops;
    149149extern libfs_ops_t mfs_libfs_ops;
     
    152152mfs_global_init(void);
    153153
    154 /* mfs_inode.c */
     154/*mfs_inode.c*/
    155155extern int
    156156mfs_get_inode(struct mfs_instance *inst, struct mfs_ino_info **ino_i,
    157     fs_index_t index);
     157          fs_index_t index);
    158158
    159159extern int
     
    163163mfs_inode_shrink(struct mfs_node *mnode, size_t size_shrink);
    164164
    165 /* mfs_rw.c */
     165/*mfs_rw.c*/
    166166extern int
    167167mfs_read_map(uint32_t *b, const struct mfs_node *mnode, const uint32_t pos);
     
    169169extern int
    170170mfs_write_map(struct mfs_node *mnode, uint32_t pos, uint32_t new_zone,
    171     uint32_t *old_zone);
     171          uint32_t *old_zone);
    172172
    173173extern int
    174174mfs_prune_ind_zones(struct mfs_node *mnode, size_t new_size);
    175175
    176 /* mfs_dentry.c */
     176/*mfs_dentry.c*/
    177177extern int
    178178mfs_read_dentry(struct mfs_node *mnode,
    179     struct mfs_dentry_info *d_info, unsigned index);
     179                     struct mfs_dentry_info *d_info, unsigned index);
    180180
    181181extern int
     
    188188mfs_insert_dentry(struct mfs_node *mnode, const char *d_name, fs_index_t d_inum);
    189189
    190 /* mfs_balloc.c */
     190/*mfs_balloc.c*/
    191191extern int
    192192mfs_alloc_inode(struct mfs_instance *inst, uint32_t *inum);
     
    201201mfs_free_zone(struct mfs_instance *inst, uint32_t zone);
    202202
    203 /* mfs_utils.c */
     203/*mfs_utils.c*/
    204204extern uint16_t
    205205conv16(bool native, uint16_t n);
Note: See TracChangeset for help on using the changeset viewer.