xfs
[Top] [All Lists]

Re: [PATCH] XFS: Check for valid transaction headers in recovery

To: Eric Sandeen <sandeen@xxxxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: [PATCH] XFS: Check for valid transaction headers in recovery
From: Lachlan McIlroy <lachlan@xxxxxxx>
Date: Mon, 06 Oct 2008 14:14:50 +1000
In-reply-to: <20080924034120.GG5448@disturbed>
References: <1222218974-5161-1-git-send-email-david@xxxxxxxxxxxxx> <48D9AF0C.3050404@xxxxxxxxxxx> <20080924034120.GG5448@disturbed>
Reply-to: lachlan@xxxxxxx
User-agent: Thunderbird 2.0.0.17 (X11/20080914)
Looks fine now Dave.

Dave Chinner wrote:
On Tue, Sep 23, 2008 at 10:07:56PM -0500, Eric Sandeen wrote:
Dave Chinner wrote:
When we are about to add a new item to a transaction in recovery,
we need to check that it is valid first. Current we just assert
that header magic number matches, but in production systems
that is not done add a corrupted transaction to the list to be
processed. This results in a kernel oops later when processing the
corrupted transaction.

Instead, if we detect a corrupted transaction, abort recovery and
leave the user to clean up the mess that has occurred.

Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
Seems fine to me (I guess you tried the provided corrupt image?)

Yes, I tried to mount it.

but the
commit message could be made a bit more ... English ;)

Right. Updated patch (description) below ;)

Cheers,

Dave.

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