xfs
[Top] [All Lists]

Re: [PATCH 2/5] xfs_repair: better checking of v5 metadata fields

To: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Subject: Re: [PATCH 2/5] xfs_repair: better checking of v5 metadata fields
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 27 May 2015 09:58:30 +1000
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20150526225139.26434.37575.stgit@xxxxxxxxxxxxxxxx>
References: <20150526225126.26434.69010.stgit@xxxxxxxxxxxxxxxx> <20150526225139.26434.37575.stgit@xxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Tue, May 26, 2015 at 03:51:39PM -0700, Darrick J. Wong wrote:
> Check the UUID, owner, and block number fields during repair, looking for
> blocks that fail either the checksum or the data structure verifiers.  For
> directories we can simply rebuild corrupt/broken index data, though for
> anything else we have to toss out the broken object.

helper function needed here for owner/uuid/blkno info checks. i.e
the header info being checked is a common structure
(xfs_da3_blkinfo) embedded into the different dir header structures,
so no need to repeat the same checks just with different dir3 header
structures....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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