9pfs: add cleanup operation in FileOperations
commit702dbcc274e2ca43be20ba64c758c0ca57dab91d
authorLi Qiang <liq3ea@gmail.com>
Wed, 23 Nov 2016 12:53:34 +0000 (23 13:53 +0100)
committerGreg Kurz <groug@kaod.org>
Wed, 23 Nov 2016 12:53:34 +0000 (23 13:53 +0100)
tree7f0e304e829c67f3ccdfbd51f02473e646785d27
parent4774718e5c194026ba5ee7a28d9be49be3080e42
9pfs: add cleanup operation in FileOperations

Currently, the backend of VirtFS doesn't have a cleanup
function. This will lead resource leak issues if the backed
driver allocates resources. This patch addresses this issue.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
fsdev/file-op-9p.h
hw/9pfs/9p.c