xfs
[Top] [All Lists]

Re: REVIEW: Write primary superblock info to ALL secondaries during mkfs

To: Barry Naujok <bnaujok@xxxxxxx>
Subject: Re: REVIEW: Write primary superblock info to ALL secondaries during mkfs
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 25 Mar 2008 07:53:17 -0500
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
In-reply-to: <op.t8j4nch93jf8g2@pc-bnaujok.melbourne.sgi.com>
References: <op.t8j4nch93jf8g2@pc-bnaujok.melbourne.sgi.com>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)
Barry Naujok wrote:
> Secondaries should contain redundant information from the primary
> superblock. It does this for the filesystem geometry information,
> but not inode values (rootino, rt inos, quota inos).
> 
> This patch updates all the secondaries from the primary just before
> it marks the filesystem as good to go.
> 
> Unfortunately, this also affects the output of xfs_repair during
> QA 030 and 178 which restores the primary superblock from the
> secondaries.
> 
> Now that the secondaries have valid inode values, xfs_repair
> does not have to restore them to the correct values after copying
> the secondary into the primary.
> 
> Attached is the mkfs.xfs patch and also the updated golden
> outputs for QA 030 and 178.
> 
> The next step after this is to enhance xfs_repair to be more
> thorough in checking the secondaries during Phase 1.

One related thing I'd always wondered about was stamping a secondary at
the very end of the device (and therefore shrinking the fs by just a
bit) - repair could then do a quick check at the end of the device
before resorting to scanning for the 2nd backup... would this make any
sense?

-Eric


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