From: "Jose R. Santos" <jrs@us.ibm.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-ext4@vger.kernel.org, "Theodore Ts'o" <tytso@mit.edu>,
Valerie Clement <valerie.clement@bull.net>
Subject: Re: [E2FSPROGS, RFC] Basic flexible block group support
Date: Tue, 22 Apr 2008 08:47:32 -0500 [thread overview]
Message-ID: <20080422084732.3e4ad0b9@gara> (raw)
In-Reply-To: <1208868379-17580-2-git-send-email-tytso@mit.edu>
On Tue, 22 Apr 2008 08:46:18 -0400
"Theodore Ts'o" <tytso@mit.edu> wrote:
> Add superblock definition, and dumpe2fs and debugfs support.
Looks good.
> Signed-off-by: Jose R. Santos <jrs@us.ibm.com>
> Signed-off-by: Valerie Clement <valerie.clement@bull.net>
> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> ---
> debugfs/set_fields.c | 1 +
> lib/e2p/ls.c | 3 +++
> lib/ext2fs/ext2_fs.h | 5 ++++-
> 3 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c
> index ee51c45..25343f0 100644
> --- a/debugfs/set_fields.c
> +++ b/debugfs/set_fields.c
> @@ -132,6 +132,7 @@ static struct field_set_info super_fields[] = {
> { "mmp_interval", &set_sb.s_mmp_interval, 2, parse_uint },
> { "mmp_block", &set_sb.s_mmp_block, 8, parse_uint },
> { "raid_stripe_width", &set_sb.s_raid_stripe_width, 4, parse_uint },
> + { "log_groups_per_flex", &set_sb.s_log_groups_per_flex, 1, parse_uint },
> { 0, 0, 0, 0 }
> };
>
> diff --git a/lib/e2p/ls.c b/lib/e2p/ls.c
> index b119606..c211dce 100644
> --- a/lib/e2p/ls.c
> +++ b/lib/e2p/ls.c
> @@ -242,6 +242,9 @@ void list_super2(struct ext2_super_block * sb, FILE *f)
> if (sb->s_first_meta_bg)
> fprintf(f, "First meta block group: %u\n",
> sb->s_first_meta_bg);
> + if (sb->s_log_groups_per_flex)
> + fprintf(f, "Flex block group size: %u\n",
> + 1 << sb->s_log_groups_per_flex);
> if (sb->s_mkfs_time) {
> tm = sb->s_mkfs_time;
> fprintf(f, "Filesystem created: %s", ctime(&tm));
> diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h
> index ad42cf8..f23c8fd 100644
> --- a/lib/ext2fs/ext2_fs.h
> +++ b/lib/ext2fs/ext2_fs.h
> @@ -564,7 +564,10 @@ struct ext2_super_block {
> __u16 s_mmp_interval; /* # seconds to wait in MMP checking */
> __u64 s_mmp_block; /* Block for multi-mount protection */
> __u32 s_raid_stripe_width; /* blocks on all data disks (N*stride)*/
> - __u32 s_reserved[163]; /* Padding to the end of the block */
> + __u8 s_log_groups_per_flex; /* FLEX_BG group size */
> + __u8 s_reserved_char_pad;
> + __u16 s_reserved_pad; /* Padding to next 32bits */
> + __u32 s_reserved[162]; /* Padding to the end of the block */
> };
>
> /*
-JRS
prev parent reply other threads:[~2008-04-22 13:47 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 12:46 [RFC] Modified flex_bg patches Theodore Ts'o
2008-04-22 12:46 ` [E2FSPROGS, RFC] Basic flexible block group support Theodore Ts'o
2008-04-22 12:46 ` [E2FSPROGS, RFC] mke2fs: New bitmap and inode table allocation for FLEX_BG Theodore Ts'o
2008-04-22 14:18 ` Jose R. Santos
2008-04-22 14:51 ` Theodore Tso
2008-04-22 15:32 ` Jose R. Santos
2008-04-22 18:57 ` Theodore Tso
2008-04-22 22:27 ` Jose R. Santos
2008-04-23 1:21 ` Theodore Tso
2008-04-23 5:48 ` Jose R. Santos
2008-04-23 12:23 ` Theodore Tso
2008-04-23 16:24 ` Jose R. Santos
2008-04-23 20:57 ` Andreas Dilger
2008-04-23 21:20 ` Jose R. Santos
2008-04-23 20:39 ` Andreas Dilger
2008-04-23 21:05 ` Jose R. Santos
2008-04-25 20:10 ` Andreas Dilger
2008-04-28 12:01 ` Theodore Tso
2008-04-23 21:01 ` Andreas Dilger
2008-04-22 13:47 ` Jose R. Santos [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=20080422084732.3e4ad0b9@gara \
--to=jrs@us.ibm.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=valerie.clement@bull.net \
/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