linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Theodore Ts'o <tytso@mit.edu>
To: Daniel Phillips <daniel.raymond.phillips@gmail.com>
Cc: David Lang <david@lang.hm>,
	linux-kernel@vger.kernel.org, tux3@tux3.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: Tux3 Report: Initial fsck has landed
Date: Mon, 28 Jan 2013 09:12:09 -0500	[thread overview]
Message-ID: <20130128141209.GA22711@thunk.org> (raw)
In-Reply-To: <CAEsagEjAoVNUUSotBXd0am5zZb5VMLWT2Dz9k5fj+C9-LKABnQ@mail.gmail.com>

On Sun, Jan 27, 2013 at 10:13:37PM -0800, Daniel Phillips wrote:
> > The thing that jumps out at me with this is the question of how you will
> > avoid the 'filesystem image in a file' disaster that reiserfs had (where
> > it's fsck could mix up metadata chunks from the main filesystem with
> > metadata chunks from any filesystem images that it happened to stumble
> > across when scanning the disk)
> >
> Only superficially. Deep thoughts are in order. First, there needs to be a
> hole in the filesystem structure, before we would even consider trying to
> plug something in there. Once we know there is a hole, we want to
> narrow down the list of candidates to fill it. If a candidate already lies
> within a perfectly viable file, obviously we would not want to interpret
> that as lost metadata. Unless the filesystem is really mess up...
> 
> That is about as far as I have got with the analysis. Clearly, much more
> is required. Suggestions welcome.

The obvious answer is what resierfs4 ultimately ended up using.  Drop
a file system UUID in the superblock; mix the UUID into a checksum
which protects each of the your metadata blocks.  We're mixing in the
inode number as well as the fs uuid in in ext4's new metadata checksum
feature to protect against an inode table block getting written to the
wrong location on disk.  It will also mean that e2fsck won't mistake
an inode table from an earlier mkfs with the current file system.
This will allow us to avoid needing to zero the inode table for newly
initialized file systems.

Regards,

						- Ted

  reply	other threads:[~2013-01-28 14:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-28  5:55 Tux3 Report: Initial fsck has landed Daniel Phillips
2013-01-28  6:02 ` David Lang
2013-01-28  6:13   ` Daniel Phillips
2013-01-28 14:12     ` Theodore Ts'o [this message]
2013-01-28 23:27       ` David Lang
2013-01-29  0:20         ` Darrick J. Wong
2013-01-29  1:40           ` Theodore Ts'o
2013-01-29  4:34             ` Daniel Phillips
2013-03-19 23:00               ` Martin Steigerwald
2013-03-20  4:04                 ` David Lang
2013-03-20  4:08                   ` Daniel Phillips
2013-03-20 10:29                   ` Martin Steigerwald
2013-03-20  6:54                 ` Rob Landley
2013-03-21  1:49                   ` Daniel Phillips
2013-03-22  1:57                     ` Dave Chinner
2013-03-22  5:41                       ` Daniel Phillips
2013-03-26  6:42                         ` Christian Stroetmann

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=20130128141209.GA22711@thunk.org \
    --to=tytso@mit.edu \
    --cc=daniel.raymond.phillips@gmail.com \
    --cc=david@lang.hm \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tux3@tux3.org \
    /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).