mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
storage: Convert 'building' into a bool
Rather than a unsigned int, use a 'bool' since that's how it was used.
This commit is contained in:
parent
325f98aa75
commit
10087386b9
@ -63,7 +63,7 @@ struct _virStorageVolDef {
|
||||
char *key;
|
||||
int type; /* virStorageVolType */
|
||||
|
||||
unsigned int building;
|
||||
bool building;
|
||||
unsigned int in_use;
|
||||
|
||||
virStorageVolSource source;
|
||||
|
@ -1691,7 +1691,7 @@ storageVolCreateXML(virStoragePoolPtr obj,
|
||||
|
||||
/* Drop the pool lock during volume allocation */
|
||||
pool->asyncjobs++;
|
||||
voldef->building = 1;
|
||||
voldef->building = true;
|
||||
virStoragePoolObjUnlock(pool);
|
||||
|
||||
buildret = backend->buildVol(obj->conn, pool, buildvoldef, flags);
|
||||
@ -1700,7 +1700,7 @@ storageVolCreateXML(virStoragePoolPtr obj,
|
||||
virStoragePoolObjLock(pool);
|
||||
storageDriverUnlock(driver);
|
||||
|
||||
voldef->building = 0;
|
||||
voldef->building = false;
|
||||
pool->asyncjobs--;
|
||||
|
||||
if (buildret < 0) {
|
||||
@ -1858,7 +1858,7 @@ storageVolCreateXMLFrom(virStoragePoolPtr obj,
|
||||
|
||||
/* Drop the pool lock during volume allocation */
|
||||
pool->asyncjobs++;
|
||||
newvol->building = 1;
|
||||
newvol->building = true;
|
||||
origvol->in_use++;
|
||||
virStoragePoolObjUnlock(pool);
|
||||
|
||||
@ -1876,7 +1876,7 @@ storageVolCreateXMLFrom(virStoragePoolPtr obj,
|
||||
storageDriverUnlock(driver);
|
||||
|
||||
origvol->in_use--;
|
||||
newvol->building = 0;
|
||||
newvol->building = false;
|
||||
allocation = newvol->target.allocation;
|
||||
pool->asyncjobs--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user