From 720fc26d33352407715cb286a4edc23d15906d5f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Feb 2007 19:14:58 -0500 Subject: Add parent pointer to dirtree, more work on mke2fs (populate dirtree, count index blocks). --- toys/e2fs.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'toys/e2fs.h') diff --git a/toys/e2fs.h b/toys/e2fs.h index bcffa3c6..5a2cb64d 100644 --- a/toys/e2fs.h +++ b/toys/e2fs.h @@ -80,7 +80,7 @@ struct ext2_dentry { uint16_t rec_len; // Directory entry length uint8_t name_len; // Name length uint8_t file_type; - char name[255]; // File name + char name[0]; // File name }; struct ext2_inode { @@ -109,8 +109,6 @@ struct ext2_inode { uint32_t reserved2; }; - - #define EXT2_FEATURE_COMPAT_DIR_PREALLOC 0x0001 #define EXT2_FEATURE_COMPAT_IMAGIC_INODES 0x0002 #define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004 -- cgit v1.2.3