From: Theodore Tso <tytso@mit.edu>
To: Kalpak Shah <Kalpak.Shah@Sun.COM>
Cc: linux-ext4 <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH][5/15] e2fsprogs-uninit-fixes.patch
Date: Fri, 10 Oct 2008 14:26:20 -0400 [thread overview]
Message-ID: <20081010182619.GC8645@mit.edu> (raw)
In-Reply-To: <1223289070.4007.85.camel@localhost>
On Mon, Oct 06, 2008 at 04:01:10PM +0530, Kalpak Shah wrote:
> Bug fixes for uninit_bg feature:
> - display correct inode number during BG_INO_UNINIT and INOREF_IN_USED
> errors
> - restart e2fsck only once in case of above errors
> - initialize bitmaps properly considering whether block group is uninit
> or not (needed for e2freefrag)
>
> Signed-off-by: Kalpak Shah <kalpak.shah@sun.com>
> Bug fixes for uninit_bg feature:
> - display correct inode number during BG_INO_UNINIT and INOREF_IN_USED errors
> - restart e2fsck only once in case of above errors
> - initialize bitmaps properly considering uninit or not (needed for e2freefrag)
>
> Index: e2fsprogs-1.41.1/debugfs/set_fields.c
> ===================================================================
> --- e2fsprogs-1.41.1.orig/debugfs/set_fields.c
> +++ e2fsprogs-1.41.1/debugfs/set_fields.c
> @@ -566,6 +566,7 @@ void do_set_block_group_descriptor(int a
> }
>
> set_gd = current_fs->group_desc[set_bg];
> + set_sb = *current_fs->super;
>
> if (ss->func(ss, argv[3]) == 0) {
> current_fs->group_desc[set_bg] = set_gd;
Why is this needed? None of the table entries used by
set_block_group_descriptor requires set_sb to be set?
> Index: e2fsprogs-1.41.1/e2fsck/problem.c
> ===================================================================
> --- e2fsprogs-1.41.1.orig/e2fsck/problem.c
> +++ e2fsprogs-1.41.1/e2fsck/problem.c
> @@ -1301,12 +1301,12 @@ static struct e2fsck_problem problem_tab
>
> /* Inode found in group where _INODE_UNINIT is set */
> { PR_2_INOREF_BG_INO_UNINIT,
> - N_("@i %i found in @g %g where _INODE_UNINIT is set. "),
> + N_("@i %N found in @g %g where _INODE_UNINIT is set. "),
> PROMPT_FIX, PR_PREEN_OK },
>
> /* Inode found in group unused inodes area */
> { PR_2_INOREF_IN_UNUSED,
> - N_("@i %i found in @g %g unused inodes area. "),
> + N_("@i %N found in @g %g unused inodes area. "),
> PROMPT_FIX, PR_PREEN_OK },
>
This doesn't look right. %N prints pctx.num, which is set to the
directory entry's offset. It looks like %Di is the correct expansion,
and maybe something like this:
@E references @i %Di in @g %g where _INODE_UNINIT is set.\n
and
@E references @i %Di in @g %g unused inods area.\n
- Ted
next prev parent reply other threads:[~2008-10-10 18:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-06 10:31 [PATCH][5/15] e2fsprogs-uninit-fixes.patch Kalpak Shah
2008-10-10 18:26 ` Theodore Tso [this message]
2008-10-11 13:43 ` Theodore Tso
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=20081010182619.GC8645@mit.edu \
--to=tytso@mit.edu \
--cc=Kalpak.Shah@Sun.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.