mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
virtio-9p: Add P9_TWSTAT support
Implement P9_TWSTAT support. This gets file and directory creation to work. [jvrao@linux.vnet.ibm.com: strdup to qemu_strdup conversion] [aneesh.kumar@linux.vnet.ibm.com: v9fs_fix_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>
This commit is contained in:
parent
c494dd6f28
commit
8cf89e007a
3 changed files with 326 additions and 2 deletions
|
@ -30,8 +30,10 @@ 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 (*chown)(FsContext *, const char *, uid_t, gid_t);
|
||||
int (*mknod)(FsContext *, const char *, mode_t, dev_t);
|
||||
int (*mksock)(FsContext *, const char *);
|
||||
int (*utime)(FsContext *, const char *, const struct utimbuf *);
|
||||
int (*symlink)(FsContext *, const char *, const char *);
|
||||
int (*link)(FsContext *, const char *, const char *);
|
||||
int (*setuid)(FsContext *, uid_t);
|
||||
|
@ -49,6 +51,9 @@ typedef struct FileOperations
|
|||
off_t (*lseek)(FsContext *, int, off_t, int);
|
||||
int (*mkdir)(FsContext *, const char *, mode_t);
|
||||
int (*fstat)(FsContext *, int, struct stat *);
|
||||
int (*rename)(FsContext *, const char *, const char *);
|
||||
int (*truncate)(FsContext *, const char *, off_t);
|
||||
int (*fsync)(FsContext *, int);
|
||||
void *opaque;
|
||||
} FileOperations;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue