mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
logical: Fix @on argument type
It's only pass as 0 or 1 and used as a bool, let's just use a bool Signed-off-by: John Ferlan <jferlan@redhat.com> ACKed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b663d4329c
commit
df1a9c7380
@ -48,7 +48,7 @@ VIR_LOG_INIT("storage.storage_backend_logical");
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool,
|
virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool,
|
||||||
int on)
|
bool on)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool);
|
virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool);
|
||||||
@ -731,7 +731,7 @@ virStorageBackendLogicalStartPool(virStoragePoolObjPtr pool)
|
|||||||
* that the pool's source devices match the pvs output.
|
* that the pool's source devices match the pvs output.
|
||||||
*/
|
*/
|
||||||
if (!virStorageBackendLogicalMatchPoolSource(pool) ||
|
if (!virStorageBackendLogicalMatchPoolSource(pool) ||
|
||||||
virStorageBackendLogicalSetActive(pool, 1) < 0)
|
virStorageBackendLogicalSetActive(pool, true) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -858,7 +858,7 @@ virStorageBackendLogicalRefreshPool(virStoragePoolObjPtr pool)
|
|||||||
static int
|
static int
|
||||||
virStorageBackendLogicalStopPool(virStoragePoolObjPtr pool)
|
virStorageBackendLogicalStopPool(virStoragePoolObjPtr pool)
|
||||||
{
|
{
|
||||||
if (virStorageBackendLogicalSetActive(pool, 0) < 0)
|
if (virStorageBackendLogicalSetActive(pool, false) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user