diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2010-09-14 15:08:25 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-10-20 12:10:58 -0500 |
commit | df0973a4650d4889463ff66cb6fbdf0ab8090c70 (patch) | |
tree | 8ce2def5ae12f8b87e9ef0cdc1c05799b82353fd /hw/virtio-9p-debug.c | |
parent | b41e95d34877c1917ba9fca7ca8f5d4122d4c619 (diff) | |
download | qemu-df0973a4650d4889463ff66cb6fbdf0ab8090c70.tar.gz qemu-df0973a4650d4889463ff66cb6fbdf0ab8090c70.tar.bz2 qemu-df0973a4650d4889463ff66cb6fbdf0ab8090c70.zip |
qemu-virtio-9p: Implement TREADLINK operation for 9p2000.L
Synopsis
size[4] TReadlink tag[2] fid[4]
size[4] RReadlink tag[2] target[s]
Description
Readlink is used to return the contents of the symoblic link
referred by fid. Contents of symboic link is returned as a
response.
target[s] - Contents of the symbolic link referred by fid.
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Diffstat (limited to 'hw/virtio-9p-debug.c')
-rw-r--r-- | hw/virtio-9p-debug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/virtio-9p-debug.c b/hw/virtio-9p-debug.c index 8f3c321aec..cff5b07297 100644 --- a/hw/virtio-9p-debug.c +++ b/hw/virtio-9p-debug.c @@ -502,6 +502,14 @@ void pprint_pdu(V9fsPDU *pdu) fprintf(llogfile, "RMKNOD: )"); pprint_qid(pdu, 0, &offset, "qid"); break; + case P9_TREADLINK: + fprintf(llogfile, "TREADLINK: ("); + pprint_int32(pdu, 0, &offset, "fid"); + break; + case P9_RREADLINK: + fprintf(llogfile, "RREADLINK: ("); + pprint_str(pdu, 0, &offset, "target"); + break; case P9_TREAD: fprintf(llogfile, "TREAD: ("); pprint_int32(pdu, 0, &offset, "fid"); |