On Wed, Jan 30, 2013 at 2:46 AM, Paul Menzel <pm.debian@xxxxxxxxxxxxxx> wrote: > > Dear Justin, > > > thank you for your patch. > > > Am Dienstag, den 29.01.2013, 18:26 -0800 schrieb Justin Maggard: > > Commit 1e2b276535cea41c348292a019bdda8a58cb1679 > > Please not only add the hash, but also the summary, so people not having > the Linus’ master checked out know what the original commit was about. > Also CC the original commit author so s/he can comment. > Done, and resent with an updated summary. > > > broke homehost updating > > functionality because it depended on each string comparison being done > > even after we already found a match. Fix this by using a goto instead. > > > > --- > > super0.c | 3 ++- > > super1.c | 3 ++- > > 2 files changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/super0.c b/super0.c > > index ecb6b38..f15f1e0 100644 > > --- a/super0.c > > +++ b/super0.c > > @@ -554,10 +554,11 @@ static int update_super0(struct supertype *st, struct mdinfo *info, > > } else if (strcmp(update, "homehost") == 0 && > > homehost) { > > uuid_set = 0; > > - update = "uuid"; > > info->uuid[0] = sb->set_uuid0; > > info->uuid[1] = sb->set_uuid1; > > + goto update_uuid; > > } else if (strcmp(update, "uuid") == 0) { > > Would changing this from »else if …« to only »if« also solve this and > make it subjectively more clear? > That would reverse what the breaking commit was trying to fix. The only other option I can think of would be to call update_super*() again from within itself. But I'm not sure if that would be more or less clear that using a goto. Thanks, -Justin -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html