diff options
author | M. Mohan Kumar | 2011-12-14 09:28:44 +0100 |
---|---|---|
committer | Aneesh Kumar K.V | 2012-01-04 15:44:28 +0100 |
commit | daf0b9aca9f67323266af1a92e8ea06f9d7bf408 (patch) | |
tree | 6c66baf222b8efb19a1dab88334add4d9275d96c /hw/9pfs/virtio-9p-proxy.h | |
parent | hw/9pfs: File system helper process for qemu 9p proxy FS (diff) | |
download | qemu-daf0b9aca9f67323266af1a92e8ea06f9d7bf408.tar.gz qemu-daf0b9aca9f67323266af1a92e8ea06f9d7bf408.tar.xz qemu-daf0b9aca9f67323266af1a92e8ea06f9d7bf408.zip |
hw/9pfs: Open and create files
Add interfaces to open and create files for proxy file system driver.
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/virtio-9p-proxy.h')
-rw-r--r-- | hw/9pfs/virtio-9p-proxy.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/9pfs/virtio-9p-proxy.h b/hw/9pfs/virtio-9p-proxy.h index 97c5574de6..6172e5faba 100644 --- a/hw/9pfs/virtio-9p-proxy.h +++ b/hw/9pfs/virtio-9p-proxy.h @@ -13,6 +13,7 @@ #define _QEMU_VIRTIO_9P_PROXY_H #define PROXY_MAX_IO_SZ (64 * 1024) +#define V9FS_FD_VALID INT_MAX /* * proxy iovec only support one element and @@ -23,6 +24,11 @@ #define proxy_marshal(out_sg, offset, fmt, args...) \ v9fs_marshal(out_sg, 1, offset, 0, fmt, ##args) +union MsgControl { + struct cmsghdr cmsg; + char control[CMSG_SPACE(sizeof(int))]; +}; + typedef struct { uint32_t type; uint32_t size; @@ -30,4 +36,9 @@ typedef struct { #define PROXY_HDR_SZ (sizeof(ProxyHeader)) +enum { + T_OPEN = 1, + T_CREATE, +}; + #endif |