aboutsummaryrefslogtreecommitdiff
path: root/hw/file-op-9p.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2010-04-29 17:44:47 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2010-05-03 12:17:38 -0500
commit131dcb2521bff704424cdb2ce065dc776fbc89b9 (patch)
tree3770e2bfc608251686e2a4d3fc1f27e3145d0007 /hw/file-op-9p.h
parenta03f7874396c909562d35931d03eca79c5c7f708 (diff)
downloadqemu-131dcb2521bff704424cdb2ce065dc776fbc89b9.zip
qemu-131dcb2521bff704424cdb2ce065dc776fbc89b9.tar.gz
qemu-131dcb2521bff704424cdb2ce065dc776fbc89b9.tar.bz2
virtio-9p: Add minimal set of FileOperations
Add minimal set of FileOperations and the corresponding implementations for local fstype. These will be required for the FID management patches later on. [aneesh.kumar@linux.vnet.ibm.com: rpath fix ] 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h
index 7cde63c..461df9e 100644
--- a/hw/file-op-9p.h
+++ b/hw/file-op-9p.h
@@ -27,6 +27,11 @@ typedef struct FsContext
typedef struct FileOperations
{
+ int (*lstat)(FsContext *, const char *, struct stat *);
+ ssize_t (*readlink)(FsContext *, const char *, char *, size_t);
+ int (*setuid)(FsContext *, uid_t);
+ int (*close)(FsContext *, int);
+ int (*closedir)(FsContext *, DIR *);
void *opaque;
} FileOperations;
#endif