X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgc%2Fmgc_request.c;h=91910a9a932f446af039d95dbcf73c8c0c86ba54;hp=896a2e2446aa78286bea8bdd61642212ceb3b33e;hb=0ff7d548eb7bf0c04836c7d6809cac163e0ffc2c;hpb=21c53b18a1bc0e36d2ecd1fb731f0dc6403902ee diff --git a/lustre/mgc/mgc_request.c b/lustre/mgc/mgc_request.c index 896a2e2..91910a9 100644 --- a/lustre/mgc/mgc_request.c +++ b/lustre/mgc/mgc_request.c @@ -1414,7 +1414,7 @@ static int mgc_apply_recover_logs(struct obd_device *mgc, char *inst; char *buf; int bufsz; - int pos; + int pos = 0; int rc = 0; int off = 0; @@ -1432,6 +1432,7 @@ static int mgc_apply_recover_logs(struct obd_device *mgc, OBD_FREE(inst, PAGE_SIZE); return -E2BIG; } +#ifdef HAVE_SERVER_SUPPORT } else { LASSERT(IS_MDT(lsi)); rc = server_name2svname(lsi->lsi_svname, inst, NULL, @@ -1441,7 +1442,8 @@ static int mgc_apply_recover_logs(struct obd_device *mgc, RETURN(-EINVAL); } pos = strlen(inst); - } +#endif /* HAVE_SERVER_SUPPORT */ + } ++pos; buf = inst + pos;