@@ -858,41 +858,54 @@ definitions:
858
858
type : object
859
859
required :
860
860
- drive_id
861
- - is_read_only
862
861
- is_root_device
863
- - path_on_host
864
862
properties :
865
863
drive_id :
866
864
type : string
865
+ partuuid :
866
+ type : string
867
+ description :
868
+ Represents the unique id of the boot partition of this device. It is
869
+ optional and it will be taken into account only if the is_root_device
870
+ field is true.
871
+ is_root_device :
872
+ type : boolean
867
873
cache_type :
868
874
type : string
869
875
description :
870
876
Represents the caching strategy for the block device.
871
877
enum : ["Unsafe", "Writeback"]
872
878
default : " Unsafe"
879
+
880
+ # VirtioBlock specific parameters
873
881
is_read_only :
874
882
type : boolean
875
- is_root_device :
876
- type : boolean
877
- partuuid :
878
- type : string
879
883
description :
880
- Represents the unique id of the boot partition of this device. It is
881
- optional and it will be taken into account only if the is_root_device
882
- field is true.
884
+ Is block read only.
885
+ This field is required for virtio-block config and should be omitted for vhost-user-block configuration.
883
886
path_on_host :
884
887
type : string
885
- description : Host level path for the guest drive
888
+ description :
889
+ Host level path for the guest drive.
890
+ This field is required for virtio-block config and should be omitted for vhost-user-block configuration.
886
891
rate_limiter :
887
892
$ref : " #/definitions/RateLimiter"
888
893
io_engine :
889
894
type : string
890
895
description :
891
896
Type of the IO engine used by the device. "Async" is supported on
892
897
host kernels newer than 5.10.51.
898
+ This field is optional for virtio-block config and should be omitted for vhost-user-block configuration.
893
899
enum : ["Sync", "Async"]
894
900
default : " Sync"
895
901
902
+ # VhostUserBlock specific parameters
903
+ socket :
904
+ type : string
905
+ description :
906
+ Path to the socket of vhost-user-block backend.
907
+ This field is required for vhost-user-block config should be omitted for virtio-block configuration.
908
+
896
909
Error :
897
910
type : object
898
911
properties :
@@ -1151,6 +1164,7 @@ definitions:
1151
1164
description :
1152
1165
Defines an IO rate limiter with independent bytes/s and ops/s limits.
1153
1166
Limits are defined by configuring each of the _bandwidth_ and _ops_ token buckets.
1167
+ This field is optional for virtio-block config and should be omitted for vhost-user-block configuration.
1154
1168
properties :
1155
1169
bandwidth :
1156
1170
$ref : " #/definitions/TokenBucket"
0 commit comments