mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemu: rename gluster_debug_entry
Remove the 'gluster' part and decouple the return from the gluster_debug_level parsing to allow adding more options to this section. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
d7c5679bc1
commit
adadc342c3
@ -115,7 +115,7 @@ module Libvirtd_qemu =
|
||||
|
||||
let nvram_entry = str_array_entry "nvram"
|
||||
|
||||
let gluster_debug_level_entry = int_entry "gluster_debug_level"
|
||||
let debug_level_entry = int_entry "gluster_debug_level"
|
||||
|
||||
let memory_entry = str_entry "memory_backing_dir"
|
||||
|
||||
@ -152,7 +152,7 @@ module Libvirtd_qemu =
|
||||
| network_entry
|
||||
| log_entry
|
||||
| nvram_entry
|
||||
| gluster_debug_level_entry
|
||||
| debug_level_entry
|
||||
| memory_entry
|
||||
| vxhs_entry
|
||||
| nbd_entry
|
||||
|
@ -796,10 +796,13 @@ virQEMUDriverConfigLoadNVRAMEntry(virQEMUDriverConfigPtr cfg,
|
||||
|
||||
|
||||
static int
|
||||
virQEMUDriverConfigLoadGlusterDebugEntry(virQEMUDriverConfigPtr cfg,
|
||||
virConfPtr conf)
|
||||
virQEMUDriverConfigLoadDebugEntry(virQEMUDriverConfigPtr cfg,
|
||||
virConfPtr conf)
|
||||
{
|
||||
return virConfGetValueUInt(conf, "gluster_debug_level", &cfg->glusterDebugLevel);
|
||||
if (virConfGetValueUInt(conf, "gluster_debug_level", &cfg->glusterDebugLevel) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -1014,7 +1017,7 @@ int virQEMUDriverConfigLoadFile(virQEMUDriverConfigPtr cfg,
|
||||
if (virQEMUDriverConfigLoadNVRAMEntry(cfg, conf, privileged) < 0)
|
||||
return -1;
|
||||
|
||||
if (virQEMUDriverConfigLoadGlusterDebugEntry(cfg, conf) < 0)
|
||||
if (virQEMUDriverConfigLoadDebugEntry(cfg, conf) < 0)
|
||||
return -1;
|
||||
|
||||
if (virQEMUDriverConfigLoadSecurityEntry(cfg, conf, privileged) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user