X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_object.c;fp=lustre%2Fosc%2Fosc_object.c;h=7c486dd083ee0006a2f641eef858c23258782a81;hp=502cfef70304567773a7cd7aacdd72b37e19ab44;hb=34acfbc2bfe502d18c12ba35771bde7c4a0f7906;hpb=b8afd0dcd3834a88b0ceead18c71d37052a00a8d;ds=sidebyside diff --git a/lustre/osc/osc_object.c b/lustre/osc/osc_object.c index 502cfef..7c486dd 100644 --- a/lustre/osc/osc_object.c +++ b/lustre/osc/osc_object.c @@ -375,7 +375,14 @@ static void osc_req_attr_set(const struct lu_env *env, struct cl_object *obj, oa->o_valid |= OBD_MD_FLGROUP; } if (flags & OBD_MD_FLID) { - ostid_set_id(&oa->o_oi, ostid_id(&oinfo->loi_oi)); + int rc; + + rc = ostid_set_id(&oa->o_oi, ostid_id(&oinfo->loi_oi)); + if (rc) { + CERROR("Bad %llu to set " DOSTID " : rc %d\n", + (unsigned long long)ostid_id(&oinfo->loi_oi), + POSTID(&oa->o_oi), rc); + } oa->o_valid |= OBD_MD_FLID; } if (flags & OBD_MD_FLHANDLE) {