xfs
[Top] [All Lists]

Re: Random filesystem corruption

To: linux-xfs@xxxxxxxxxxx
Subject: Re: Random filesystem corruption
From: Sebastian Ude <ude@xxxxxxxxxxxx>
Date: Sat, 16 Mar 2002 18:08:19 +0100
In-reply-to: <3C929D14.6040502@xxxxxxx>
References: <3C929D14.6040502@xxxxxxx>
Reply-to: ude@xxxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx

On Fri, 15 Mar 2002, lord@xxxxxxx (Stephen Lord) wrote:
> Date: Fri, 15 Mar 2002 19:17:08 -0600
> To: ude@xxxxxxxxxxxx
> From: lord@xxxxxxx (Stephen Lord)
> CC: linux-xfs@xxxxxxxxxxx
> Subject: Re: Random filesystem corruption

[...]

> We then want to look at the block in the file (if it was less than 4K 
> this would be in the
> inode output):
>
> xfs_db: dblock 0
> xfs_db: p
> bhdr.magic = 0x58443242
> bhdr.bestfree[0].offset = 0xb18
> bhdr.bestfree[0].length = 0x1a8
> bhdr.bestfree[1].offset = 0x540
> bhdr.bestfree[1].length = 0x1a0
> bhdr.bestfree[2].offset = 0x7c0
> bhdr.bestfree[2].length = 0x1a0
> bu[0].inumber = 131
> bu[0].namelen = 1
> bu[0].name = "."
> bu[0].tag = 0x10
> bu[1].inumber = 128
> bu[1].namelen = 2
> bu[1].name = ".."
> bu[1].tag = 0x20

[...]

> bleaf[0].hashval = 0x2e
> bleaf[0].address = 0x2
> bleaf[1].hashval = 0x172e
> bleaf[1].address = 0x4

[...]

> Now find the offending name and run the hash command on it:
>
> xfs_db: hash xfs-baseline
> 0xf050e942

Steve,

for some reason xfs_db does print the first listing of the form:

xx[i].inumber =
xx[i].namelen =
xx[i].name =
xx[i].tag =

but not the second one where it comes to the important hash values ...


- Sebastian


<Prev in Thread] Current Thread [Next in Thread>