Revision be940c87 hw/virtio-9p.h

b/hw/virtio-9p.h
13 13
#define VIRTIO_9P_MOUNT_TAG 0
14 14

  
15 15
enum {
16
    P9_TSTATFS = 8,
17
    P9_RSTATFS,
16 18
    P9_TVERSION = 100,
17 19
    P9_RVERSION,
18 20
    P9_TAUTH = 102,
......
252 254
    uint8_t tag[0];
253 255
} __attribute__((packed));
254 256

  
257
typedef struct V9fsStatfs
258
{
259
    uint32_t f_type;
260
    uint32_t f_bsize;
261
    uint64_t f_blocks;
262
    uint64_t f_bfree;
263
    uint64_t f_bavail;
264
    uint64_t f_files;
265
    uint64_t f_ffree;
266
    uint64_t fsid_val;
267
    uint32_t f_namelen;
268
} V9fsStatfs;
269

  
270
typedef struct V9fsStatfsState {
271
    V9fsPDU *pdu;
272
    size_t offset;
273
    int32_t fid;
274
    V9fsStatfs v9statfs;
275
    V9fsFidState *fidp;
276
    struct statfs stbuf;
277
} V9fsStatfsState;
278

  
255 279
extern size_t pdu_packunpack(void *addr, struct iovec *sg, int sg_count,
256 280
                            size_t offset, size_t size, int pack);
257 281

  

Also available in: Unified diff