mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
committed by
Anthony Liguori
parent
b41e95d348
commit
df0973a465
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user