From: Ted Ts'o <tytso@mit.edu>
To: Yongqiang Yang <xiaoqiangnk@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: [PATCH 1/2] dumpe2fs: dump blocks count used by super and GDT
Date: Sun, 20 Nov 2011 13:28:18 -0500 [thread overview]
Message-ID: <20111120182818.GA12868@thunk.org> (raw)
In-Reply-To: <CAGBYx2Yca4EPk6ZZ8Q0jqbCxK9bURYcht9FKo9gcSWLmvVAMhQ@mail.gmail.com>
On Sun, Nov 20, 2011 at 03:08:23PM +0800, Yongqiang Yang wrote:
> Some users are confused by static metadata blocks allocated by extN
> file systems. Blocks used as inode tables and bitmaps can be
> calculated by data from dumpe2fs. However, blocks taken up by super
> blocks and GDT can not be calculated. So this patch prints the
> number of blocks used by super blocks and GDT. IMHO, it is useful
> for some users who know little about extN. I met several users who
> ask why a fresh ext4 has used so many blocks compared to others. I
> know most of them are used as inode tables. Without this patch, we
> can explain the problem. I just think we can explain the problem
> with explicit numbers with the patch.
The reason most of the users are complaining is not because of
superblocks and the GDT blocks, however. It's really the inode table
blocks (somewhat), and especially, the 5% reserved blocks for root.
This is the sort of thing that's better explained in a FAQ entry,
since most users are also not likely to use dumpe2fs.
And if they are going to use dumpe2fs, I'd much rather the FAQ entry
explain it and they can then look at the details of the block layout
in the dumpe2fs output (i."e. dumpe2fs /dev/hdXX | grep superblock")
if they really need to count the number of superblocks.
- Ted
prev parent reply other threads:[~2011-11-20 18:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 1:02 [PATCH 1/2] dumpe2fs: dump blocks count used by super and GDT Yongqiang Yang
2011-11-16 1:02 ` [PATCH 2/2] libext2fs: remove useless code in ext2fs_super_and_bgd_loc2 Yongqiang Yang
2011-11-20 4:43 ` [PATCH 1/2] dumpe2fs: dump blocks count used by super and GDT Ted Ts'o
2011-11-20 7:08 ` Yongqiang Yang
2011-11-20 18:28 ` Ted Ts'o [this message]
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=20111120182818.GA12868@thunk.org \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=xiaoqiangnk@gmail.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