* broken commit 25567a7b0fa98b390fd1ff0d4702b29c23a75bbb
@ 2011-07-09 0:07 Andreas Dilger
2011-07-09 0:41 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Dilger @ 2011-07-09 0:07 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: Ext4 Developers List
In my pull from e2fsprogs git "master" branch, it contains commit
25567a7b0fa98b390fd1ff0d4702b29c23a75bbb "support for bigalloc
file systems with a blocksize of 1024" that deletes the initialization
of the flexbg_size variable from lib/ext2fs/alloc_tables.c::flexbg_offset():
- flexbg_size = 1 << fs->super->s_log_groups_per_flex;
- flexbg = group / flexbg_size;
+ size = rem_grp * elem_size;
but it continues to use flexbg_size later on in this function:
start_blk = ext2fs_group_first_block2(fs, flexbg_size * flexbg);
last_grp = group | (flexbg_size - 1);
This provokes an uninitialized compiler warning (I always use CFLAGS=-Wall),
but it isn't clear to me at first glance what the intention of this change
is or how to fix it.
It doesn't cause any "make check" errors, but that is almost certainly
only because very few tests run with flex_bg enabled, but it is definitely
a bug that would cause strange behaviour.
Cheers, Andreas
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: broken commit 25567a7b0fa98b390fd1ff0d4702b29c23a75bbb
2011-07-09 0:07 broken commit 25567a7b0fa98b390fd1ff0d4702b29c23a75bbb Andreas Dilger
@ 2011-07-09 0:41 ` Ted Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-07-09 0:41 UTC (permalink / raw)
To: Andreas Dilger; +Cc: Ext4 Developers List
On Fri, Jul 08, 2011 at 06:07:14PM -0600, Andreas Dilger wrote:
> In my pull from e2fsprogs git "master" branch, it contains commit
> 25567a7b0fa98b390fd1ff0d4702b29c23a75bbb "support for bigalloc
> file systems with a blocksize of 1024" that deletes the initialization
> of the flexbg_size variable from lib/ext2fs/alloc_tables.c::flexbg_offset():
>
> - flexbg_size = 1 << fs->super->s_log_groups_per_flex;
> - flexbg = group / flexbg_size;
> + size = rem_grp * elem_size;
>
> but it continues to use flexbg_size later on in this function:
Yeah, sorry, fixed in the next branch. I thought I had advanced the
master branch enough to fix it, but I didn't advance it enough. Try a
pull now.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-09 0:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-09 0:07 broken commit 25567a7b0fa98b390fd1ff0d4702b29c23a75bbb Andreas Dilger
2011-07-09 0:41 ` Ted Ts'o
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).