[U-Boot] [PATCH V5 1/2] ext4fs ls load support

Rob Herring robherring2 at gmail.com
Mon Aug 13 22:30:52 CEST 2012


On 08/13/2012 02:17 PM, Wolfgang Denk wrote:
> Dear Rob Herring,
> 
> In message <50294743.5010907 at gmail.com> you wrote:
>>
>> I do an ubuntu install to a single ext4 fs and then ext2ls gives this:
> ...
>> The problem is in the directories with sizes of 0. It does seem to be
> 
> What exactly is the problem?  The listing appears pretty normal to me?

The size for the directories are 0 instead of 4096 and those directories
have no contents. An ext2ls on /usr in this example:

EXT2 rev 1, inode_size 256
ext4fs read 0 group descriptor (blkno 1 blkoff 0)
Iterate dir usr
iterate >.<
iterate >..<
iterate >lost+found<
iterate >etc<
iterate >media<
iterate >var<
iterate >usr<
ext4fs read 1760 group descriptor (blkno 14 blkoff 3072)

Note only debug messages are printed. Not even '.' or '..' entries.

It's only a problem when it is the /boot directory which seems to be
random from install to install.

> It seems you enabled some debug feature?  Which exactly?  And you get
> the same results without debug, don't you?

Just defined DEBUG on ext_common.c and ext4fs.c. It happens either way.

> 
>> I haven't been able to produce a simple example just creating a bunch of
>> files and directories, so only the disk after an ubuntu install has the
>> problem.
> 
> Can you upload the image somewhere?  And indicate which exact
> problems we should look for?

Yes, I'll have to recreate one with a reasonable size.

Rob

> 
> Best regards,
> 
> Wolfgang Denk
> 



More information about the U-Boot mailing list