
On 08/13/2012 06:52 AM, Wolfgang Denk wrote:
Dear Rob Herring,
In message 50244D5A.3080304@gmail.com you wrote:
I reported already that the prior version that ext4 has issues with sub-directories. I don't think that has been addressed in V5. Some directories show up fine and some don't. So it's kind of random whether u-boot can read a /boot directory. This was after full ubuntu installs. I'd guess a simple test with a couple of files and directories will not show the problem.
We really need a test case here. In my (certainly not very extensive) tests I didn't see such a problem.
Can you please describe what failed for you?
I do an ubuntu install to a single ext4 fs and then ext2ls gives this:
EXT2 rev 1, inode_size 256 ext4fs read 0 group descriptor (blkno 1 blkoff 0) iterate >.< ext4fs read 0 group descriptor (blkno 1 blkoff 0) <DIR> 4096 . iterate >..< ext4fs read 0 group descriptor (blkno 1 blkoff 0) <DIR> 4096 .. iterate >lost+found< ext4fs read 0 group descriptor (blkno 1 blkoff 0) <DIR> 16384 lost+found iterate >etc< ext4fs read 832 group descriptor (blkno 7 blkoff 2048) <DIR> 4096 etc iterate >media< ext4fs read 416 group descriptor (blkno 4 blkoff 1024) <DIR> 4096 media iterate >var< ext4fs read 848 group descriptor (blkno 7 blkoff 2560) <DIR> 4096 var iterate >usr< ext4fs read 1760 group descriptor (blkno 14 blkoff 3072) <DIR> 0 usr iterate >mnt< ext4fs read 80 group descriptor (blkno 1 blkoff 2560) <DIR> 4096 mnt iterate >dev< ext4fs read 1152 group descriptor (blkno 10 blkoff 0) <DIR> 0 dev iterate >home< ext4fs read 1472 group descriptor (blkno 12 blkoff 2048) <DIR> 0 home iterate >run< ext4fs read 864 group descriptor (blkno 7 blkoff 3072) <DIR> 4096 run iterate >boot< ext4fs read 224 group descriptor (blkno 2 blkoff 3072) <DIR> 4096 boot iterate >tmp< ext4fs read 1184 group descriptor (blkno 10 blkoff 1024) <DIR> 0 tmp iterate >sbin< ext4fs read 576 group descriptor (blkno 5 blkoff 2048) <DIR> 4096 sbin iterate >proc< ext4fs read 1632 group descriptor (blkno 13 blkoff 3072) <DIR> 0 proc iterate >bin< ext4fs read 1216 group descriptor (blkno 10 blkoff 2048) <DIR> 0 bin
The problem is in the directories with sizes of 0. It does seem to be directories with higher blkno's. Perhaps the lack of support for hash table directory entries is a problem. Just guessing here as I don't know much about ext4 structure.
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.
Rob