From: Theodore Tso <tytso@mit.edu>
To: Damien Guibouret <damien.guibouret@partition-saving.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: flex_bg information initialization and question on resize/bad inodes with 48 bits filesystem
Date: Fri, 11 Sep 2009 14:35:40 -0400 [thread overview]
Message-ID: <20090911183540.GB28764@mit.edu> (raw)
In-Reply-To: <4AAA8F6C.6030206@partition-saving.com>
On Fri, Sep 11, 2009 at 07:57:00PM +0200, Damien Guibouret wrote:
>
> I have looked at the new features provided by ext4 and have a question
> on flex_bg information initialization:
> into ext4_fill_flex_info function of fs/ext4/super.c (lines 1698, 1700
> and 1702 for kernel 2.6.31) doesn't the atomic_set calls be atomic_add
> to sum statistics of each group composing a flex group, or do I
> misunderstand something ?
Good eye; that's a bug; thanks for pointing that out.
> For the extension to manage 48 bits blocks number, I do not see anything
> to treat this for resize and bad inodes into kernel or e2fsprogs. For
> the resize inode, it is perhaps an incompatibility of this feature with
> 48 bits blocks number, but for the bad inode ?
There is a plan for how to handle online resizing for > 2^32 block
filesystems, but it hasn't been implemented yet. The basic support
for it is there; that's what the META_BG feature is designed to
support, so existing kernels will be able to deal with resized large
filesystemes. But the code to actually do the on-line resizing hasn't
been implemented yet.
For the bad block inode, the solution is to make it be extent mapped
inode. This also hasn't been implemented yet, but this is a much
simpler one to write. The main reason why we haven't is that modern
disks rarely have system-visible bad blocks; normally the hard drive
has its own bad block remapping layer in hardware so we never see a
bad block until the disk is failing so badly it needs to be replaced
ASAP.
- Ted
next prev parent reply other threads:[~2009-09-11 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-11 17:57 flex_bg information initialization and question on resize/bad inodes with 48 bits filesystem Damien Guibouret
2009-09-11 18:35 ` Theodore Tso [this message]
2009-09-11 20:57 ` [PATCH] ext4: Fix initalization of s_flex_groups Theodore Ts'o
2009-09-12 8:08 ` flex_bg information initialization and question on resize/bad inodes with 48 bits filesystem Damien Guibouret
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=20090911183540.GB28764@mit.edu \
--to=tytso@mit.edu \
--cc=damien.guibouret@partition-saving.com \
--cc=linux-ext4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.