]> git.proxmox.com Git - mirror_qemu.git/commitdiff
virtio-9p: Bugfix to send correct iounit
authorM. Mohan Kumar <mohan@in.ibm.com>
Tue, 1 Feb 2011 08:51:41 +0000 (14:21 +0530)
committerVenkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Wed, 27 Apr 2011 15:26:29 +0000 (08:26 -0700)
LCREATE function packs address of iounit in the pdu, fix that to send
actual iounit itself.

Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Acked-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
hw/9pfs/virtio-9p.c

index 18968c25c38b9c3d4d13342e087bbba75e81e778..ca394570ca969681d08efc79687b055d319ec779 100644 (file)
@@ -1771,7 +1771,7 @@ static void v9fs_post_lcreate(V9fsState *s, V9fsLcreateState *vs, int err)
         v9fs_string_copy(&vs->fidp->path, &vs->fullname);
         stat_to_qid(&vs->stbuf, &vs->qid);
         vs->offset += pdu_marshal(vs->pdu, vs->offset, "Qd", &vs->qid,
-                &vs->iounit);
+                vs->iounit);
         err = vs->offset;
     } else {
         vs->fidp->fid_type = P9_FID_NONE;