提交 922c867f 编写于 作者: R Roman Bogorodskiy

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: NRoman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 718ddf2f
......@@ -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)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册