Whamcloud - gitweb
- fix sending wrong attributes... Are there more of these?
authorbraam <braam>
Thu, 22 Aug 2002 05:00:39 +0000 (05:00 +0000)
committerbraam <braam>
Thu, 22 Aug 2002 05:00:39 +0000 (05:00 +0000)
lustre/mdc/mdc_reint.c

index 2356e17..c811bd6 100644 (file)
@@ -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);