From: Nathaniel Clark Date: Mon, 20 May 2013 14:03:38 +0000 (-0400) Subject: LU-3357 mgs: Initialize uuid of llogs created by replace_nids X-Git-Tag: 2.4.52~41 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f220c1329a897e4d5b7624f957f57e16bfced27f LU-3357 mgs: Initialize uuid of llogs created by replace_nids Initialize "Target uuid" with same data as in record_start_log(). Signed-off-by: Nathaniel Clark Change-Id: If7f49eda6bf2f4143d86b71392e215528ebcbf92 Reviewed-on: http://review.whamcloud.com/6395 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Artem Blagodarenko Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index b03c9a9..32a422a 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -1095,6 +1095,7 @@ static int mgs_replace_nids_log(const struct lu_env *env, struct llog_ctxt *ctxt; struct mgs_replace_uuid_lookup *mrul; struct mgs_device *mgs_dev = lu2mgs_dev(mgs->obd_lu_dev); + static struct obd_uuid cfg_uuid = { .uuid = "config_uuid" }; char *backup; int rc, rc2; ENTRY; @@ -1133,7 +1134,7 @@ static int mgs_replace_nids_log(const struct lu_env *env, if (rc) GOTO(out_restore, rc); - rc = llog_init_handle(env, orig_llh, LLOG_F_IS_PLAIN, NULL); + rc = llog_init_handle(env, orig_llh, LLOG_F_IS_PLAIN, &cfg_uuid); if (rc) GOTO(out_closel, rc);