Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ocaml/idl/datamodel.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5738,7 +5738,8 @@ let vbd_mode = Enum ("vbd_mode", [ "RO", "only read-only access will be allowed"

let vbd_type = Enum ("vbd_type",
[ "CD", "VBD will appear to guest as CD";
"Disk", "VBD will appear to guest as disk" ])
"Disk", "VBD will appear to guest as disk";
"Floppy", "VBD will appear as a floppy"])

let vbd_operations =
Enum ("vbd_operations",
Expand Down
5 changes: 4 additions & 1 deletion ocaml/xapi/xapi_xenops.ml
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ module MD = struct
position = Some device_number;
mode = if vbd.API.vBD_mode = `RO then ReadOnly else ReadWrite;
backend = disk_of_vdi ~__context ~self:vbd.API.vBD_VDI;
ty = if vbd.API.vBD_type = `Disk then Disk else CDROM;
ty = (match vbd.API.vBD_type with
| `Disk -> Disk
| `CD -> CDROM
| `Floppy -> Floppy);
unpluggable = vbd.API.vBD_unpluggable;
extra_backend_keys = backend_kind_keys;
extra_private_keys = [];
Expand Down