xfs
[Top] [All Lists]

Re: [REVIEW] Refactor xfs_repair's process_dinode_int

To: Barry Naujok <bnaujok@xxxxxxx>
Subject: Re: [REVIEW] Refactor xfs_repair's process_dinode_int
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Wed, 21 Nov 2007 15:05:26 +0000
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, xfs-dev <xfs-dev@xxxxxxx>
In-reply-to: <op.t1tl53ac3jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <op.t1tl53ac3jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.3i
On Thu, Nov 15, 2007 at 05:40:41PM +1100, Barry Naujok wrote:
> Implementing casefold-table checking in xfs_repair, I have to
> touch process_dinode_int. It's a horrendous function. The attached
> patch hopefully makes it much clearer what it does and removes a
> lot of duplicate code when bad inodes are found. There are some
> obscure bug fixes too (eg. two places where the inode's di_mode is
> updated, but not marked dirty - libxfs would have tossed it).
> 
> The refactoring involved removing unused variables, working out
> what various variables actually did and use them appropriately
> and break blocks of functionality into separate functions.

This looks very good f4rom a quick glance over it.  I can't claim
I've verified that it still does the same thing, though.


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