From dc1bb08399aaded9876b2114d13c3fde216be26f Mon Sep 17 00:00:00 2001
From: huanghua <huanghua>
Date: Wed, 12 Nov 2008 02:52:18 +0000
Subject: [PATCH] Branch b1_6 b=17602 i=yury.umanets i=tappro

use 1.8/2.0 compatible MDT config for 1.6 mds, easy to upgrade.
---
 lustre/mgs/mgs_llog.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c
index ab84dabc69..74e5c43055 100644
--- a/lustre/mgs/mgs_llog.c
+++ b/lustre/mgs/mgs_llog.c
@@ -1090,8 +1090,10 @@ static int mgs_write_log_mdt(struct obd_device *obd, struct fs_db *fsdb,
         rc = record_attach(obd, llh, mti->mti_svname, LUSTRE_MDS_NAME, 
                            mti->mti_uuid);
         rc = record_setup(obd, llh, mti->mti_svname,
-                          "dev"/*ignored*/, "type"/*ignored*/,
-                          mti->mti_svname, 0/*options*/);
+                          mti->mti_uuid /* Ignored. Compatible with future. */,
+                          "0" /* MDT Index, default to zero. */,
+                          mti->mti_svname,
+                          0 /* options */);
         rc = record_marker(obd, llh, fsdb, CM_END, mti->mti_svname, "add mdt"); 
         rc = record_end_log(obd, &llh);
 
-- 
GitLab