X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FFilesystems%2FExt2%2Fext2fs.h;h=a3aa301e77dd4ba29b831bec3cba88017c385e5e;hb=de37bdfbcd4814c20babda4a7198736bf0effd3e;hp=8fd87ce415af3ae8830679d6e6362e2160b1dbf1;hpb=923a9dc473851ec2bb1c94021bbf139724e7e8a5;p=tpg%2Facess2.git diff --git a/Modules/Filesystems/Ext2/ext2fs.h b/Modules/Filesystems/Ext2/ext2fs.h index 8fd87ce4..a3aa301e 100644 --- a/Modules/Filesystems/Ext2/ext2fs.h +++ b/Modules/Filesystems/Ext2/ext2fs.h @@ -52,14 +52,17 @@ struct ext2_super_block_s { Uint32 s_blocks_count; //!< Blocks count Uint32 s_r_blocks_count; //!< Reserved blocks count Uint32 s_free_blocks_count; //!< Free blocks count + Uint32 s_free_inodes_count; //!< Free inodes count Uint32 s_first_data_block; //!< First Data Block Uint32 s_log_block_size; //!< Block size Sint32 s_log_frag_size; //!< Fragment size + Uint32 s_blocks_per_group; //!< Number Blocks per group Uint32 s_frags_per_group; //!< Number Fragments per group Uint32 s_inodes_per_group; //!< Number Inodes per group Uint32 s_mtime; //!< Mount time + Uint32 s_wtime; //!< Write time Uint16 s_mnt_count; //!< Mount count Sint16 s_max_mnt_count; //!< Maximal mount count @@ -67,10 +70,12 @@ struct ext2_super_block_s { Uint16 s_state; //!< File system state Uint16 s_errors; //!< Behaviour when detecting errors Uint16 s_pad; //!< Padding + Uint32 s_lastcheck; //!< time of last check Uint32 s_checkinterval; //!< max. time between checks Uint32 s_creator_os; //!< Formatting OS Uint32 s_rev_level; //!< Revision level + Uint16 s_def_resuid; //!< Default uid for reserved blocks Uint16 s_def_resgid; //!< Default gid for reserved blocks Uint32 s_reserved[235]; //!< Padding to the end of the block @@ -149,8 +154,9 @@ struct ext2_dir_entry_s { Uint32 inode; //!< Inode number Uint16 rec_len; //!< Directory entry length Uint8 name_len; //!< Short Name Length - Uint8 type; //!< File Type - char name[]; //!< File name + Uint8 type; //!< File Type (Duplicate of ext2_inode_s.i_mode) + char name[EXT2_NAME_LEN+1]; //!< File name }; +#define EXT2_DIRENT_SIZE (sizeof(struct ext2_dir_entry_s)-EXT2_NAME_LEN+1) #endif