mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/9pfs: Update v9fs_statfs to use coroutines
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
94840ff9f3
commit
88a4763e88
2 changed files with 43 additions and 69 deletions
|
@ -398,28 +398,6 @@ struct virtio_9p_config
|
|||
uint8_t tag[0];
|
||||
} __attribute__((packed));
|
||||
|
||||
typedef struct V9fsStatfs
|
||||
{
|
||||
uint32_t f_type;
|
||||
uint32_t f_bsize;
|
||||
uint64_t f_blocks;
|
||||
uint64_t f_bfree;
|
||||
uint64_t f_bavail;
|
||||
uint64_t f_files;
|
||||
uint64_t f_ffree;
|
||||
uint64_t fsid_val;
|
||||
uint32_t f_namelen;
|
||||
} V9fsStatfs;
|
||||
|
||||
typedef struct V9fsStatfsState {
|
||||
V9fsPDU *pdu;
|
||||
size_t offset;
|
||||
int32_t fid;
|
||||
V9fsStatfs v9statfs;
|
||||
V9fsFidState *fidp;
|
||||
struct statfs stbuf;
|
||||
} V9fsStatfsState;
|
||||
|
||||
typedef struct V9fsMkState {
|
||||
V9fsPDU *pdu;
|
||||
size_t offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue