virtio-9p: Add P9_TCLUNK support
Implement P9_TCLUNK support. This patch gets `ls -al` to work. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a92315553d
commit
bbd5697b8e
@ -1311,9 +1311,21 @@ out:
|
|||||||
|
|
||||||
static void v9fs_clunk(V9fsState *s, V9fsPDU *pdu)
|
static void v9fs_clunk(V9fsState *s, V9fsPDU *pdu)
|
||||||
{
|
{
|
||||||
if (debug_9p_pdu) {
|
int32_t fid;
|
||||||
pprint_pdu(pdu);
|
size_t offset = 7;
|
||||||
|
int err;
|
||||||
|
|
||||||
|
pdu_unmarshal(pdu, offset, "d", &fid);
|
||||||
|
|
||||||
|
err = free_fid(s, fid);
|
||||||
|
if (err < 0) {
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
offset = 7;
|
||||||
|
err = offset;
|
||||||
|
out:
|
||||||
|
complete_pdu(s, pdu, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct V9fsReadState {
|
typedef struct V9fsReadState {
|
||||||
|
Loading…
Reference in New Issue
Block a user