From: braam Date: Thu, 22 Aug 2002 05:00:39 +0000 (+0000) Subject: - fix sending wrong attributes... Are there more of these? X-Git-Tag: 0.5.5~90 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=3dbd4906e7dfe4891952d0fce2ca0475d7624936;p=fs%2Flustre-release.git - fix sending wrong attributes... Are there more of these? --- diff --git a/lustre/mdc/mdc_reint.c b/lustre/mdc/mdc_reint.c index 2356e17..c811bd6 100644 --- a/lustre/mdc/mdc_reint.c +++ b/lustre/mdc/mdc_reint.c @@ -108,8 +108,7 @@ int mdc_create(struct lustre_handle *conn, name, namelen, NULL, 0); if (S_ISREG(mode)) { - tmp = lustre_msg_buf(req->rq_reqmsg, 2); - memcpy(tmp, smd, smd->lmd_easize); + lov_packmd(lustre_msg_buf(req->rq_reqmsg, 2), smd); } else if (S_ISLNK(mode)) { tmp = lustre_msg_buf(req->rq_reqmsg, 2); LOGL0(tgt, tgtlen, tmp);