From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <19991115152923.C12244@devserv.devel.redhat.com> Date: Mon, 15 Nov 1999 15:29:23 -0500 From: Matt Wilson Subject: Re: Milo 2.2 (release) In-Reply-To: On Tue, Nov 09, 1999 at 10:46:17AM +0100, Stefan Reinauer wrote: > > Have fun and please send me thousands of comments.... Thanks for doing this work, Stefan. A few things. First, the ext2 reading code is not handling revision 1 ext2 filesystems. Revision 1 filesystems split the 16 bit length name_len field of the dirent into two 8 bit fields, "file_type" and "name_len". Milo still uses the ext2_dir_entry structrue and reads name_len as a 16 bit value, so you get file lengths that are extraordinary long. For example, the 'etc' entry of the '/' directory is read to be 515 bytes long. Since it's checking to see that the lenths of the file you're looking for and the dentry that you're looking at have the same length, nothing matches and MILO fails to open the file. Of course, 515 is just 0x0203, showing that it is a EXT2_FT_DIR (type 2) with entry length of 3. All we really need to do is a lot of 0xff masking whenever you use a dentry->name_len. There seems to be a problem reading 4096 byte block sizes. I've not tracked down the exact problem here. Stefan - could you send the .config of the kernel that you built against? I'm having trouble with symbol resolution, probably because I have too many drivers/subsystems turned on. Thanks again. Matt msw@redhat.com