aboutsummaryrefslogtreecommitdiff
path: root/hw/file-op-9p.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-04-29 17:45:01 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2010-05-03 12:17:39 -0500
commit5bae190082fc24d8881e5db9409fc94f6c46f219 (patch)
treeb3b4d0bbd3939e2fc3753b1620d46abc1c9232d7 /hw/file-op-9p.h
parent8cf89e007a37fff75c06e5a4564d530e51c1ec98 (diff)
downloadqemu-5bae190082fc24d8881e5db9409fc94f6c46f219.zip
qemu-5bae190082fc24d8881e5db9409fc94f6c46f219.tar.gz
qemu-5bae190082fc24d8881e5db9409fc94f6c46f219.tar.bz2
virtio-9p: Add P9_TREMOVE support.
Implement P9_TREMOVE support. This gets file deletion to work. [mohan@in.ibm.com: Fix truncate to use the relative path] 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>
Diffstat (limited to 'hw/file-op-9p.h')
-rw-r--r--hw/file-op-9p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h
index 8ba1927..f84767f 100644
--- a/hw/file-op-9p.h
+++ b/hw/file-op-9p.h
@@ -34,6 +34,7 @@ typedef struct FileOperations
int (*mknod)(FsContext *, const char *, mode_t, dev_t);
int (*mksock)(FsContext *, const char *);
int (*utime)(FsContext *, const char *, const struct utimbuf *);
+ int (*remove)(FsContext *, const char *);
int (*symlink)(FsContext *, const char *, const char *);
int (*link)(FsContext *, const char *, const char *);
int (*setuid)(FsContext *, uid_t);