From: Jan Kara <jack@suse.cz>
To: Christoph Anton Mitterer <calestyo@scientia.net>
Cc: Jan Kara <jack@suse.cz>,
linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org
Subject: Re: mounting ext3 with another superblock doesn't work?
Date: Mon, 9 May 2011 16:08:39 +0200 [thread overview]
Message-ID: <20110509140839.GO4122@quack.suse.cz> (raw)
In-Reply-To: <bc77e9fddac46b6a67f715a458190205@imap.dd24.net>
On Mon 09-05-11 13:47:41, Christoph Anton Mitterer wrote:
> On Mon, 9 May 2011 15:10:27 +0200, Jan Kara <jack@suse.cz> wrote:
> > Well, the block size is most likely the same (4 KB) in both the old
> and
> > the new fs (unless you tinkered with it but I don't expect that). That
> > defines size of a block group and thus position of inodes, bitmaps, etc.
> > Another variable is a number of inodes (per group). If you have an old
> > superblock you can compare the old and the new number of inodes and you
> > can be sure. Otherwise you rely on whether the math in the mkfs with
> which
> > you've originally created the fs is the same as the math in your current
> > mkfs (and you didn't specify any special options regarding this)...
>
> Well I didn't change them but maybe Debian has modified the defaults in
> mke2fs.conf since I created the fs initially.
> inode_size = 256 could be a candidate. Unfortunately I don't remember
> which Debian/e2fsprogs I've used to create the fs originally.
>
> Was this ever set to 128 (i mean as a default for e2fsprogs itself, when
> it was not set in mke2fs.conf)?
Yes it was although relatively long time ago (several years).
> If the values would have actually changed, wouldn't this mean that all
> data was then gone?
Not really because we store extended attributes in the additional 128
bytes of inode space and unless we see proper magic value we ignore the
contents. So you'd just silently loose every second inode I think.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
next prev parent reply other threads:[~2011-05-09 14:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <031c613316176c32f09748706a086be2@imap.dd24.net>
2011-05-07 7:38 ` mounting ext3 with another superblock doesn't work? Amir G.
2011-05-07 7:59 ` Yongqiang Yang
[not found] ` <23AF51ED-8130-4401-94FE-93CF36E8E1C1@dilger.ca>
2011-05-07 22:03 ` Christoph Anton Mitterer
2011-05-09 12:06 ` Jan Kara
2011-05-09 12:43 ` Rogier Wolff
2011-05-09 12:59 ` Christoph Anton Mitterer
2011-05-09 13:10 ` Jan Kara
2011-05-09 13:47 ` Christoph Anton Mitterer
2011-05-09 14:08 ` Jan Kara [this message]
2011-05-09 13:18 ` Lukas Czerner
2011-05-09 13: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=20110509140839.GO4122@quack.suse.cz \
--to=jack@suse.cz \
--cc=calestyo@scientia.net \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.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).