mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
bhyve: handle all enum values in switches
Recent commits switched some variables to enums but did not fix the warnings in the bhyve driver. Fixes:0eb42087c7
Fixes:a1ce98061c
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
bdb95b520c
commit
eee062d7a2
@ -616,6 +616,7 @@ bhyveBuildFSArgStr(const virDomainDef *def G_GNUC_UNUSED,
|
||||
break;
|
||||
case VIR_DOMAIN_FS_ACCESSMODE_MAPPED:
|
||||
case VIR_DOMAIN_FS_ACCESSMODE_SQUASH:
|
||||
case VIR_DOMAIN_FS_ACCESSMODE_DEFAULT:
|
||||
case VIR_DOMAIN_FS_ACCESSMODE_LAST:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("unsupported filesystem accessmode '%s'"),
|
||||
@ -1052,6 +1053,9 @@ virBhyveGetBootDisk(virDomainDef *def)
|
||||
case VIR_DOMAIN_BOOT_DISK:
|
||||
boot_dev = VIR_DOMAIN_DISK_DEVICE_DISK;
|
||||
break;
|
||||
case VIR_DOMAIN_BOOT_FLOPPY:
|
||||
case VIR_DOMAIN_BOOT_NET:
|
||||
case VIR_DOMAIN_BOOT_LAST:
|
||||
default:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("Cannot boot from device %s"),
|
||||
|
Loading…
Reference in New Issue
Block a user