Changeset d5e2763 in mainline for uspace/lib/ext2/libext2.h


Ignore:
Timestamp:
2011-02-12T16:17:00Z (15 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36bca8eb
Parents:
d3842e0
Message:

Add very basic program to show ext2 information (only superblock magic currently)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext2/libext2.h

    rd3842e0 rd5e2763  
    3737#define LIBEXT2_LIBEXT2_H_
    3838
     39#include <byteorder.h>
    3940
     41typedef struct ext2_superblock {
     42        uint8_t unused[56];
     43        uint16_t magic;
     44} ext2_superblock_t;
     45
     46#define EXT2_SUPERBLOCK_MAGIC 0xEF53
     47
     48inline uint16_t ext2_superblock_get_magic(ext2_superblock_t *superblock);
    4049
    4150#endif
Note: See TracChangeset for help on using the changeset viewer.