mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
virsh: cmdAttachDisk: Declare one variable per line
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
ed46c9921f
commit
6524af14c2
@ -562,13 +562,23 @@ static bool
|
|||||||
cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
|
cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
|
||||||
{
|
{
|
||||||
virDomainPtr dom = NULL;
|
virDomainPtr dom = NULL;
|
||||||
const char *source = NULL, *target = NULL, *driver = NULL,
|
const char *source = NULL;
|
||||||
*subdriver = NULL, *type = NULL, *mode = NULL,
|
const char *target = NULL;
|
||||||
*iothread = NULL, *cache = NULL, *io = NULL,
|
const char *driver = NULL;
|
||||||
*serial = NULL, *straddr = NULL, *wwn = NULL,
|
const char *subdriver = NULL;
|
||||||
*targetbus = NULL, *alias = NULL;
|
const char *type = NULL;
|
||||||
|
const char *mode = NULL;
|
||||||
|
const char *iothread = NULL;
|
||||||
|
const char *cache = NULL;
|
||||||
|
const char *io = NULL;
|
||||||
|
const char *serial = NULL;
|
||||||
|
const char *straddr = NULL;
|
||||||
|
const char *wwn = NULL;
|
||||||
|
const char *targetbus = NULL;
|
||||||
|
const char *alias = NULL;
|
||||||
struct DiskAddress diskAddr;
|
struct DiskAddress diskAddr;
|
||||||
bool isFile = false, functionReturn = false;
|
bool isFile = false;
|
||||||
|
bool functionReturn = false;
|
||||||
int ret;
|
int ret;
|
||||||
unsigned int flags = VIR_DOMAIN_AFFECT_CURRENT;
|
unsigned int flags = VIR_DOMAIN_AFFECT_CURRENT;
|
||||||
const char *stype = NULL;
|
const char *stype = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user