From: Ted Ts'o <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: "ext4 development" <linux-ext4@vger.kernel.org>,
"Lukáš Czerner" <lczerner@redhat.com>
Subject: Re: [PATCH] libext2: clear BG_BLOCK_UNINIT in any group containing metadata
Date: Tue, 27 Mar 2012 15:40:32 -0700 [thread overview]
Message-ID: <20120327224032.GE11236@thunk.org> (raw)
In-Reply-To: <4F46835F.5080009@redhat.com>
On Thu, Feb 23, 2012 at 12:20:15PM -0600, Eric Sandeen wrote:
> Running a test like the m_uninit test runs:
>
> # mke2fs -F -o Linux -O uninit_bg testfs 131072
>
> results in groups which have blocks allocated for metadata, but
> which still have the BLOCK_UNINIT flag set:
>
> Group 2: (Blocks 16385-24576) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED]
> Checksum 0x17c2, unused inodes 2048
> Block bitmap at 16385 (+0), Inode bitmap at 16386 (+1)
> Inode table at 16387-16642 (+2)
Sorry for the delay in getting back to you. The general rule here is
what triggers BLOCK_UNINIT getting cleared is when we allocate
metadata blocks for *another* block group in that block group. When
we initialize an uninitialized block group, it's easy enough to set
the bits for the block group's allocation bitmaps and inode tables.
However, we *don't* want to have to scan all of the block groups to
see if they have metadata blocks appearing in a particular block
group, so that's the reason for this rule.
So in the above dumpe2fs output, since we aren't using flex_bg, the
only metadata blocks which are in a bg is the bg's own metadata
blocks, and so that's why it's OK for BLOCK_UNINIT to be set. This
isn't a bug.
- Ted
next prev parent reply other threads:[~2012-03-27 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 18:20 [PATCH] libext2: clear BG_BLOCK_UNINIT in any group containing metadata Eric Sandeen
2012-02-23 19:03 ` Eric Sandeen
2012-03-27 22:40 ` Ted Ts'o [this message]
2012-03-28 15:28 ` Eric Sandeen
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=20120327224032.GE11236@thunk.org \
--to=tytso@mit.edu \
--cc=lczerner@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=sandeen@redhat.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).