Changeset 3564cdd in mainline


Ignore:
Timestamp:
2011-03-05T17:51:18Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dbc7aeb
Parents:
82650385
Message:

simplify directory entries structures definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/fs/minix.h

    r82650385 r3564cdd  
    5050#define V1_NR_INDIRECT_ZONES    2
    5151
    52 #define V1_MAX_NAME_LEN         14
    53 #define V1L_MAX_NAME_LEN        30
    54 #define V2_MAX_NAME_LEN         14
    55 #define V2L_MAX_NAME_LEN        30
    56 #define V3_MAX_NAME_LEN         60
     52#define MFS_MAX_NAME_LEN        14
     53#define MFS_L_MAX_NAME_LEN      30
     54#define MFS3_MAX_NAME_LEN       60
    5755
    5856#define MFS_MAGIC_V1            0x137F
     
    158156} __attribute__ ((packed));
    159157
    160 #define mfs_v2_dentry   mfs_v1_dentry
    161 #define mfs_v1l_dentry  mfs_v2l_dentry
    162 
    163 /*MinixFS V1 directory entry on-disk structure*/
    164 struct mfs_v1_dentry {
     158/*MinixFS V1/V2 directory entry on-disk structure*/
     159struct mfs_dentry {
    165160        uint16_t d_inum;
    166         char d_name[V1_MAX_NAME_LEN];
     161        char d_name[MFS_MAX_NAME_LEN];
    167162} __attribute__ ((packed));
    168163
    169 /*MinixFS V2 with 30-char filenames (Linux variant)*/
     164/*MinixFS V1/V2 with 30-char filenames (Linux variant)*/
    170165struct mfs_v2l_dentry {
    171166        uint16_t d_inum;
    172         char d_name[V2L_MAX_NAME_LEN];
     167        char d_name[MFS_L_MAX_NAME_LEN];
    173168} __attribute__ ((packed));
    174169
    175170/*MinixFS V3 directory entry on-disk structure*/
    176 struct mfs_v3_dentry {
     171struct mfs3_dentry {
    177172        uint32_t d_inum;
    178         char d_name[V3_MAX_NAME_LEN];
     173        char d_name[MFS3_MAX_NAME_LEN];
    179174} __attribute__ ((packed));
    180175
Note: See TracChangeset for help on using the changeset viewer.