Changeset eee8007 in mainline for uspace/srv


Ignore:
Timestamp:
2011-03-05T09:49:33Z (15 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55c51c28
Parents:
1ffbbc1
Message:

Add support to long filenames, improve mkminix

Location:
uspace/srv/fs/minixfs
Files:
3 edited

Legend:

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

    r1ffbbc1 reee8007  
    5353#define V1_MAX_NAME_LEN         14
    5454#define V2_MAX_NAME_LEN         14
     55#define V2E_MAX_NAME_LEN        30
    5556#define V3_MAX_NAME_LEN         60
    5657
  • uspace/srv/fs/minixfs/mfs_dentry.h

    r1ffbbc1 reee8007  
    3737
    3838#define mfs_v2_dentry   mfs_v1_dentry
     39#define mfs_v1l_dentry  mfs_v2l_dentry
    3940
    4041/*MinixFS V1 directory entry on-disk structure*/
     
    4243        uint16_t d_inum;
    4344        char d_name[V1_MAX_NAME_LEN];
     45} __attribute__ ((packed));
     46
     47/*MinixFS V2 with 30-char filenames (Linux variant)*/
     48struct mfs_v2l_dentry {
     49        uint16_t d_inum;
     50        char d_name[V2E_MAX_NAME_LEN];
    4451} __attribute__ ((packed));
    4552
  • uspace/srv/fs/minixfs/mfs_super.h

    r1ffbbc1 reee8007  
    3939#define MFS_MAGIC_V1R           0x7F13
    4040
     41#define MFS_MAGIC_V1L           0x138F
     42#define MFS_MAGIC_V1LR          0x8F13
     43
    4144#define MFS_MAGIC_V2            0x2468
    4245#define MFS_MAGIC_V2R           0x6824
     46
     47#define MFS_MAGIC_V2L           0x2478
     48#define MFS_MAGIC_V2LR          0x7824
    4349
    4450#define MFS_MAGIC_V3            0x4D5A
     
    104110typedef enum {
    105111        MFS_VERSION_V1 = 1,
     112        MFS_VERSION_V1L,
    106113        MFS_VERSION_V2,
     114        MFS_VERSION_V2L,
    107115        MFS_VERSION_V3
    108116} mfs_version_t;
Note: See TracChangeset for help on using the changeset viewer.