From: Ted Ts'o <tytso@mit.edu>
To: Andreas Dilger <adilger@dilger.ca>
Cc: Andreas Dilger <aedilger@gmail.com>,
Yongqiang Yang <xiaoqiangnk@gmail.com>,
Ext4 Developers List <linux-ext4@vger.kernel.org>
Subject: Re: backup of the last group'descriptor when it is the 1st group of a meta_bg
Date: Tue, 3 Apr 2012 14:26:54 -0700 [thread overview]
Message-ID: <20120403212654.GB24502@thunk.org> (raw)
In-Reply-To: <2E05166B-2C63-4DA0-BD80-7C91C9623BDF@dilger.ca>
On Tue, Apr 03, 2012 at 01:28:14PM -0600, Andreas Dilger wrote:
> It would probably not even cause the backup group descriptor to be
> lost in the worst case (new mke2fs/e2fsck/resize2fs creates gd backup,
> old e2fsck "deletes" gd backup block, use filesystem for a long time,
> corrupt primary group descriptors, try to recover using new e2fsck).
Well, it can only be repaired if that block hasn't been allocated and
assigned to a file. If it has, then you can't easily repair it and
you have to resign yourself to not having a backup of the bgd. And
that means more complexity since e2fsck would have to deal with the
possibility that the last block might contain a backup bgd, or might
be allocated to a file.
And even if there is a "harmless" corruption, it will still
potentially alarm users who happen to format an ext4 file system with
this this change implemented, and then they boot a rescue CD which is
using an older e2fsprogs.
Ultimately I suspect the best approach might be to simply try to
reconstruct the last bgd by attempting to find the inode table in case
the last meta_bg bgd is destroyed. Since this only comes up for file
systems with a single block group in a meta_bg, it's a relatively easy
thing to do.....
- Ted
next prev parent reply other threads:[~2012-04-03 21:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 14:47 backup of the last group'descriptor when it is the 1st group of a meta_bg Yongqiang Yang
2012-03-28 16:08 ` Andreas Dilger
2012-04-02 5:04 ` Yongqiang Yang
2012-04-02 5:46 ` Andreas Dilger
2012-04-03 18:39 ` Ted Ts'o
2012-04-03 19:28 ` Andreas Dilger
2012-04-03 21:26 ` Ted Ts'o [this message]
2012-04-03 22:07 ` backup of the last group descriptor " Andreas Dilger
2012-04-04 19:28 ` Ted Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120403212654.GB24502@thunk.org \
--to=tytso@mit.edu \
--cc=adilger@dilger.ca \
--cc=aedilger@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=xiaoqiangnk@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).