[virtio-9p] Define and implement TSYMLINK for 9P2000.L
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Wed, 9 Jun 2010 21:02:08 +0000 (14:02 -0700)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 8 Sep 2010 17:26:40 +0000 (22:56 +0530)
commiteb98db1e89a81178e690e533d3d77b4b16c79a91
tree051f5a681040f17441a6d1d6bef3b66441d1ee88
parent4e385ffc19d37fd3c5bc4a64b6edc1319a951175
[virtio-9p] Define and implement TSYMLINK for 9P2000.L

This patch implements creating a symlink for TSYMLINK request
and responds with RSYMLINK. In the case of error, we return RERROR.

SYNOPSIS

    size[4] Tsymlink tag[2] fid[4] name[s] symtgt[s] gid[4]

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

    DESCRIPTION

    Create a symbolic link named 'name' pointing to 'symtgt'.
    gid represents the effective group id of the caller.
    The  permissions of a symbolic link are irrelevant hence it is omitted
    from the protocol.

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