Changeset 9e3dc95 in mainline for uspace/srv/fs/minixfs/mfs_super.h


Ignore:
Timestamp:
2011-03-01T22:10:16Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9a9a58e
Parents:
819450a
Message:

check superblock magic numbers

File:
1 edited

Legend:

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

    r819450a r9e3dc95  
    3737#include "../../vfs/vfs.h"
    3838
     39#define MFS_MAGIC_V1            0x137F
     40#define MFS_MAGIC_V2            0x2468
     41#define MFS_MAGIC_V3            0x4D5A
     42
    3943struct mfs_superblock {
    4044        /*Total number of inodes on the device*/
     
    6771} __attribute__ ((packed));
    6872
     73typedef enum {
     74        MFS_VERSION_V1 = 1,
     75        MFS_VERSION_V2,
     76        MFS_VERSION_V3
     77} mfs_version_t;
     78
    6979void mfs_mounted(ipc_callid_t rid, ipc_call_t *request);
    7080
Note: See TracChangeset for help on using the changeset viewer.