qemu: virtio-9p: Implement TMKDIR
authorM. Mohan Kumar <mohan@in.ibm.com>
Tue, 22 Jun 2010 06:55:22 +0000 (12:25 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 8 Sep 2010 17:26:40 +0000 (22:56 +0530)
commit0f4f835ec8779feb7c5f11d88869e6b09e6e7072
treee627ba9880b18026c4ebf48b26f85c26f61a8f16
parent93f3c6a515a7ef8365f872e5f7ec2d67841ca3b9
qemu: virtio-9p: Implement TMKDIR

Synopsis

    size[4] Tmkdir tag[2] fid[4] name[s] mode[4] gid[4]

    size[4] Rmkdir tag[2] qid[13]

Description

    mkdir asks the file server to create a directory with given name,
    mode and gid. The qid for the new directory is returned with
    the mkdir reply message.

Note: 72 is selected as the opcode for TMKDIR from the reserved list.

Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
[jvrao@linux.vnet.ibm.com: Fix perm handling when creating directory]

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
hw/virtio-9p-debug.c
hw/virtio-9p.c
hw/virtio-9p.h