From: Theodore Ts'o <tytso@mit.edu>
To: Felipe Monteiro de Carvalho <felipemonteiro.carvalho@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Beginner questions about ext4
Date: Wed, 10 Jul 2013 13:24:09 -0400 [thread overview]
Message-ID: <20130710172409.GC28076@thunk.org> (raw)
In-Reply-To: <CACyNnZPoAt2VNgGfRwzcvVdJHF8xKhE93zS7dGrmodg9Lm=cNQ@mail.gmail.com>
On Wed, Jul 10, 2013 at 06:13:08PM +0200, Felipe Monteiro de Carvalho wrote:
>
> When I am reading a ext4 file system and I find that there exists an
> inode /etc/ with groupnr 32 and nodenr 260099, will this group 32 be
> in the same position (distance in bytes from the beginning of the
> disk) as in ext3? Or will the flex_bg make the first 16 groups fit
> into the size that previously 1 group utilized? So group 32 in ext 4
> would be in the physical position of group 2 in ext3.
>
> If I have s_log_groups_per_flex=4 (seams the be the most popular
> value), then each and every set of 16 groups will be groups into
> flex_bgs or only some are grouped into flex_bgs?
>
> Basically I have a reader for ext3 and I added EXTENT support and it
> works now fine for the group 0, but for higher groups it is not
> working and I'm trying to find out what I need to change ... I'm
> trying to find what physically changed here... but it is a hard
> battle. Much harder than EXTENT support was.
Your reader shouldn't care about the flex_bg feature. From a reader's
perspective, flex_bg's don't matter. Just ignore it. Just think in
terms of block groups, and you'll be find. The Flex_bg feature
matters for how our block allocation strategy works, and it influences
how online resizing works, and it tells e2fsck that it's ok for the
inode table for a particular block group to be located outside of its
own block group (which is where the "flexible" came from).
But from a read-only client is concerned, it doesn't matter. Just use
the block group descriptors to find the location of the inode table,
and just expunge the concept of flex_bg's from your mind entirely. Or
better yet, just use the libext2fs library, and don't try to reinvent
the wheel.....
- Ted
next prev parent reply other threads:[~2013-07-10 17:24 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-12 12:20 Beginner questions about ext4 Felipe Monteiro de Carvalho
2013-06-23 6:29 ` Felipe Monteiro de Carvalho
2013-06-23 11:59 ` Theodore Ts'o
2013-07-01 15:23 ` Felipe Monteiro de Carvalho
2013-07-01 16:55 ` Theodore Ts'o
2013-07-10 16:13 ` Felipe Monteiro de Carvalho
2013-07-10 17:24 ` Theodore Ts'o [this message]
2013-07-11 7:37 ` Felipe Monteiro de Carvalho
2013-07-11 15:23 ` Theodore Ts'o
2013-07-15 10:20 ` Felipe Monteiro de Carvalho
2013-07-15 13:43 ` Theodore Ts'o
2013-07-15 16:09 ` Felipe Monteiro de Carvalho
2013-07-15 16:37 ` Theodore Ts'o
2013-07-15 17:55 ` Felipe Monteiro de Carvalho
2013-07-15 18:10 ` Theodore Ts'o
2013-07-15 18:18 ` Felipe Monteiro de Carvalho
2013-07-15 18:59 ` Theodore Ts'o
2013-07-16 6:14 ` Felipe Monteiro de Carvalho
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=20130710172409.GC28076@thunk.org \
--to=tytso@mit.edu \
--cc=felipemonteiro.carvalho@gmail.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.