From 3dbd4906e7dfe4891952d0fce2ca0475d7624936 Mon Sep 17 00:00:00 2001 From: braam Date: Thu, 22 Aug 2002 05:00:39 +0000 Subject: [PATCH] - fix sending wrong attributes... Are there more of these? --- lustre/mdc/mdc_reint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 1.8.3.1