mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
bhyve: Properly name bhyve help parsing function
Currently there's a function called bhyveProbeCapsRTC_UTC() that parses bhyve capabilities from the bhyve help output (bhyve -h). Right now it only checks the '-u' flag, but as there will be more features detectable through this help output, give it more general name: bhyveProbeCapsFromHelp(). Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
718ddf2fe7
commit
922c867f06
@ -227,7 +227,7 @@ bhyveProbeCapsDeviceHelper(unsigned int *caps,
|
||||
}
|
||||
|
||||
static int
|
||||
bhyveProbeCapsRTC_UTC(unsigned int *caps, char *binary)
|
||||
bhyveProbeCapsFromHelp(unsigned int *caps, char *binary)
|
||||
{
|
||||
char *help;
|
||||
virCommandPtr cmd = NULL;
|
||||
@ -314,7 +314,7 @@ virBhyveProbeCaps(unsigned int *caps)
|
||||
if (binary == NULL)
|
||||
goto out;
|
||||
|
||||
if ((ret = bhyveProbeCapsRTC_UTC(caps, binary)))
|
||||
if ((ret = bhyveProbeCapsFromHelp(caps, binary)))
|
||||
goto out;
|
||||
|
||||
if ((ret = bhyveProbeCapsAHCI32Slot(caps, binary)))
|
||||
|
Loading…
Reference in New Issue
Block a user