diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-04-29 17:44:47 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-05-03 12:17:38 -0500 |
commit | 131dcb2521bff704424cdb2ce065dc776fbc89b9 (patch) | |
tree | 3770e2bfc608251686e2a4d3fc1f27e3145d0007 /hw/file-op-9p.h | |
parent | a03f7874396c909562d35931d03eca79c5c7f708 (diff) |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index 7cde63c625..461df9eeb4 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 |