X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgs%2Fmgs_handler.c;h=274b6fb2b0c5c2ecb1ae2978f72f9d555ccde109;hp=a8d8570c06476266cdb23293d2f672da54a4bb3d;hb=868565282f0234335e5afe13990bb8571049bdc0;hpb=2fe8b2600cd7aea21149fbb9d0829129a274a472 diff --git a/lustre/mgs/mgs_handler.c b/lustre/mgs/mgs_handler.c index a8d8570..274b6fb 100644 --- a/lustre/mgs/mgs_handler.c +++ b/lustre/mgs/mgs_handler.c @@ -413,6 +413,10 @@ static int mgs_handle_target_reg(struct ptlrpc_request *req) mgs_counter_incr(req->rq_export, LPROC_MGS_TARGET_REG); mti = req_capsule_client_get(&req->rq_pill, &RMF_MGS_TARGET_INFO); + + if (mti->mti_flags & LDD_F_NEED_INDEX) + mti->mti_flags |= LDD_F_WRITECONF; + if (!(mti->mti_flags & (LDD_F_WRITECONF | LDD_F_UPGRADE14 | LDD_F_UPDATE))) { /* We're just here as a startup ping. */