X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FFilesystems%2FExt2%2Fext2fs.h;h=0cc9a466a907b762d08f2c8a0f6023e013f79a1f;hb=b1873b4cff47aae8ada8cc303ea01b475cc7ccc8;hp=8fd87ce415af3ae8830679d6e6362e2160b1dbf1;hpb=775bf8013abe9fe4ef3d4883ea2e43bba2a84da1;p=tpg%2Facess2.git diff --git a/Modules/Filesystems/Ext2/ext2fs.h b/Modules/Filesystems/Ext2/ext2fs.h index 8fd87ce4..0cc9a466 100644 --- a/Modules/Filesystems/Ext2/ext2fs.h +++ b/Modules/Filesystems/Ext2/ext2fs.h @@ -149,8 +149,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