diff --git a/qemu-3.1-vitastor.patch b/qemu-3.1-vitastor.patch index 42268b5d..35880d21 100644 --- a/qemu-3.1-vitastor.patch +++ b/qemu-3.1-vitastor.patch @@ -11,7 +11,7 @@ Index: qemu-3.1+dfsg/qapi/block-core.json 'host_cdrom', 'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs', 'null-aio', 'null-co', 'nvme', 'parallels', 'qcow', 'qcow2', 'qed', 'quorum', 'raw', 'rbd', 'replication', 'sheepdog', -@@ -3367,6 +3367,24 @@ +@@ -3367,6 +3367,28 @@ '*tag': 'str' } } ## @@ -19,17 +19,21 @@ Index: qemu-3.1+dfsg/qapi/block-core.json +# +# Driver specific block device options for vitastor +# ++# @image: Image name +# @inode: Inode number +# @pool: Pool ID +# @size: Desired image size in bytes -+# @etcd_host: etcd connection address ++# @config_path: Path to Vitastor configuration ++# @etcd_host: etcd connection address(es) +# @etcd_prefix: etcd key/value prefix +## +{ 'struct': 'BlockdevOptionsVitastor', -+ 'data': { 'inode': 'uint64', -+ 'pool': 'uint64', -+ 'size': 'uint64', -+ 'etcd_host': 'str', ++ 'data': { '*inode': 'uint64', ++ '*pool': 'uint64', ++ '*size': 'uint64', ++ '*image': 'str', ++ '*config_path': 'str', ++ '*etcd_host': 'str', + '*etcd_prefix': 'str' } } + +## diff --git a/qemu-4.2-vitastor.patch b/qemu-4.2-vitastor.patch index b09f7b6a..4617f106 100644 --- a/qemu-4.2-vitastor.patch +++ b/qemu-4.2-vitastor.patch @@ -11,7 +11,7 @@ Index: qemu/qapi/block-core.json 'ssh', 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat', 'vxhs' ] } ## -@@ -3725,6 +3725,24 @@ +@@ -3725,6 +3725,28 @@ '*tag': 'str' } } ## @@ -19,17 +19,21 @@ Index: qemu/qapi/block-core.json +# +# Driver specific block device options for vitastor +# ++# @image: Image name +# @inode: Inode number +# @pool: Pool ID +# @size: Desired image size in bytes -+# @etcd_host: etcd connection address ++# @config_path: Path to Vitastor configuration ++# @etcd_host: etcd connection address(es) +# @etcd_prefix: etcd key/value prefix +## +{ 'struct': 'BlockdevOptionsVitastor', -+ 'data': { 'inode': 'uint64', -+ 'pool': 'uint64', -+ 'size': 'uint64', -+ 'etcd_host': 'str', ++ 'data': { '*inode': 'uint64', ++ '*pool': 'uint64', ++ '*size': 'uint64', ++ '*image': 'str', ++ '*config_path': 'str', ++ '*etcd_host': 'str', + '*etcd_prefix': 'str' } } + +## diff --git a/qemu-5.0-vitastor.patch b/qemu-5.0-vitastor.patch index 0f7cba0b..30b84a59 100644 --- a/qemu-5.0-vitastor.patch +++ b/qemu-5.0-vitastor.patch @@ -11,7 +11,7 @@ Index: qemu/qapi/block-core.json 'ssh', 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat', 'vxhs' ] } ## -@@ -3635,6 +3635,24 @@ +@@ -3635,6 +3635,28 @@ '*tag': 'str' } } ## @@ -19,17 +19,21 @@ Index: qemu/qapi/block-core.json +# +# Driver specific block device options for vitastor +# ++# @image: Image name +# @inode: Inode number +# @pool: Pool ID +# @size: Desired image size in bytes -+# @etcd_host: etcd connection address ++# @config_path: Path to Vitastor configuration ++# @etcd_host: etcd connection address(es) +# @etcd_prefix: etcd key/value prefix +## +{ 'struct': 'BlockdevOptionsVitastor', -+ 'data': { 'inode': 'uint64', -+ 'pool': 'uint64', -+ 'size': 'uint64', -+ 'etcd_host': 'str', ++ 'data': { '*inode': 'uint64', ++ '*pool': 'uint64', ++ '*size': 'uint64', ++ '*image': 'str', ++ '*config_path': 'str', ++ '*etcd_host': 'str', + '*etcd_prefix': 'str' } } + +## diff --git a/qemu-5.1-vitastor.patch b/qemu-5.1-vitastor.patch index 3f6eb165..6c52fd99 100644 --- a/qemu-5.1-vitastor.patch +++ b/qemu-5.1-vitastor.patch @@ -11,7 +11,7 @@ Index: qemu-5.1+dfsg/qapi/block-core.json 'ssh', 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat' ] } ## -@@ -3644,6 +3644,24 @@ +@@ -3644,6 +3644,28 @@ '*tag': 'str' } } ## @@ -19,17 +19,21 @@ Index: qemu-5.1+dfsg/qapi/block-core.json +# +# Driver specific block device options for vitastor +# ++# @image: Image name +# @inode: Inode number +# @pool: Pool ID +# @size: Desired image size in bytes -+# @etcd_host: etcd connection address ++# @config_path: Path to Vitastor configuration ++# @etcd_host: etcd connection address(es) +# @etcd_prefix: etcd key/value prefix +## +{ 'struct': 'BlockdevOptionsVitastor', -+ 'data': { 'inode': 'uint64', -+ 'pool': 'uint64', -+ 'size': 'uint64', -+ 'etcd_host': 'str', ++ 'data': { '*inode': 'uint64', ++ '*pool': 'uint64', ++ '*size': 'uint64', ++ '*image': 'str', ++ '*config_path': 'str', ++ '*etcd_host': 'str', + '*etcd_prefix': 'str' } } + +##