diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-04-29 17:44:59 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-05-03 12:17:39 -0500 |
commit | c494dd6f28dbacd855bca894c664bf1f9836afe9 (patch) | |
tree | 10878ad9ae08c9345de4b5a42276a993be0e2022 /hw/file-op-9p.h | |
parent | 8449360cbde906bb36ca2181d3723bae2fd10742 (diff) |
virtio-9p: Add P9_TCREATE support
Implement P9_TCREATE support.
[jvrao@linux.vnet.ibm.com: strdup to qemu_strdup conversion]
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 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/file-op-9p.h b/hw/file-op-9p.h index 12503c1c2d..5049b2ec80 100644 --- a/hw/file-op-9p.h +++ b/hw/file-op-9p.h @@ -29,11 +29,17 @@ typedef struct FileOperations { int (*lstat)(FsContext *, const char *, struct stat *); ssize_t (*readlink)(FsContext *, const char *, char *, size_t); + int (*chmod)(FsContext *, const char *, mode_t); + int (*mknod)(FsContext *, const char *, mode_t, dev_t); + int (*mksock)(FsContext *, const char *); + int (*symlink)(FsContext *, const char *, const char *); + int (*link)(FsContext *, const char *, const char *); int (*setuid)(FsContext *, uid_t); int (*close)(FsContext *, int); int (*closedir)(FsContext *, DIR *); DIR *(*opendir)(FsContext *, const char *); int (*open)(FsContext *, const char *, int); + int (*open2)(FsContext *, const char *, int, mode_t); void (*rewinddir)(FsContext *, DIR *); off_t (*telldir)(FsContext *, DIR *); struct dirent *(*readdir)(FsContext *, DIR *); @@ -41,6 +47,8 @@ typedef struct FileOperations ssize_t (*readv)(FsContext *, int, const struct iovec *, int); ssize_t (*writev)(FsContext *, int, const struct iovec *, int); off_t (*lseek)(FsContext *, int, off_t, int); + int (*mkdir)(FsContext *, const char *, mode_t); + int (*fstat)(FsContext *, int, struct stat *); void *opaque; } FileOperations; #endif |