Re: [CFT][PATCH] ext2 directories in pagecache

From: Alexander Viro (viro@math.psu.edu)
Date: Thu Sep 28 2000 - 10:28:07 EST


On Thu, 28 Sep 2000, Marko Kreen wrote:

> On Tue, Sep 26, 2000 at 05:29:27PM -0400, Alexander Viro wrote:
> > Folks, give it a try - just keep decent backups. Similar code will
>
> It started to give me following errors:
>
> EXT2-fs error (device sd(8,6)): ext2_add_entry: bad entry in directory
> #28699: rec_len is smaller than minimal - offset=1024, inode=0,
> rec_len=0, name_len=0

Urgh. Sounds like a 1Kb-block filesystem with something that managed to
extend the directory without filling the new block. What's the size of
this directory?

> And sometimes a couple:
>
> EXT2-fs error (device sd(8,6)): ext2_readdir: bad entry in directory
> #28699: rec_len is smaller than minimal - offset=1024, inode=0,
> rec_len=0, name_len=0
>
> There are a lot of instances of this but the dir # is the same.
> The directory in question seems to PostgreSQL data directory
> /var/lib/postgresql/data and it started when I tried to create a
> database into this. Otherwise the PostgreSQL works ok.

> No Oops yet.
>
> Kernel is UP 2.4.0-test9-pre7+ext2-patch-7. Nothing else.
>
> What other info is needed? And please also directions how to get it :)

debugfs and then stat <directory_name>

> Hmm, I am starting to think that maybe I _should_ make backups...

Ahem...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:22 EST