test: Fix up formatting in storage test API's

Fix some spacing/formatting in the storage pool/vol test driver code.

Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
John Ferlan 2017-05-05 15:57:37 -04:00
parent 0937f1e2a4
commit f51b78edd9

View File

@ -1039,6 +1039,7 @@ testParseInterfaces(testDriverPtr privconn,
return ret; return ret;
} }
static int static int
testOpenVolumesForPool(const char *file, testOpenVolumesForPool(const char *file,
xmlXPathContextPtr ctxt, xmlXPathContextPtr ctxt,
@ -1095,6 +1096,7 @@ testOpenVolumesForPool(const char *file,
return ret; return ret;
} }
static int static int
testParseStorage(testDriverPtr privconn, testParseStorage(testDriverPtr privconn,
const char *file, const char *file,
@ -1147,6 +1149,7 @@ testParseStorage(testDriverPtr privconn,
return ret; return ret;
} }
static int static int
testParseNodedevs(testDriverPtr privconn, testParseNodedevs(testDriverPtr privconn,
const char *file, const char *file,
@ -4035,8 +4038,8 @@ testInterfaceDestroy(virInterfacePtr iface,
* Storage Driver routines * Storage Driver routines
*/ */
static int
static int testStoragePoolObjSetDefaults(virStoragePoolObjPtr pool) testStoragePoolObjSetDefaults(virStoragePoolObjPtr pool)
{ {
pool->def->capacity = defaultPoolCap; pool->def->capacity = defaultPoolCap;
@ -4108,6 +4111,7 @@ testStoragePoolLookupByUUID(virConnectPtr conn,
return ret; return ret;
} }
static virStoragePoolPtr static virStoragePoolPtr
testStoragePoolLookupByName(virConnectPtr conn, testStoragePoolLookupByName(virConnectPtr conn,
const char *name) const char *name)
@ -4128,6 +4132,7 @@ testStoragePoolLookupByName(virConnectPtr conn,
return ret; return ret;
} }
static virStoragePoolPtr static virStoragePoolPtr
testStoragePoolLookupByVolume(virStorageVolPtr vol) testStoragePoolLookupByVolume(virStorageVolPtr vol)
{ {
@ -4198,6 +4203,7 @@ testConnectListDefinedStoragePools(virConnectPtr conn,
return n; return n;
} }
static int static int
testConnectListAllStoragePools(virConnectPtr conn, testConnectListAllStoragePools(virConnectPtr conn,
virStoragePoolPtr **pools, virStoragePoolPtr **pools,
@ -4216,7 +4222,9 @@ testConnectListAllStoragePools(virConnectPtr conn,
return ret; return ret;
} }
static int testStoragePoolIsActive(virStoragePoolPtr pool)
static int
testStoragePoolIsActive(virStoragePoolPtr pool)
{ {
testDriverPtr privconn = pool->conn->privateData; testDriverPtr privconn = pool->conn->privateData;
virStoragePoolObjPtr obj; virStoragePoolObjPtr obj;
@ -4233,7 +4241,9 @@ static int testStoragePoolIsActive(virStoragePoolPtr pool)
return ret; return ret;
} }
static int testStoragePoolIsPersistent(virStoragePoolPtr pool)
static int
testStoragePoolIsPersistent(virStoragePoolPtr pool)
{ {
testDriverPtr privconn = pool->conn->privateData; testDriverPtr privconn = pool->conn->privateData;
virStoragePoolObjPtr obj; virStoragePoolObjPtr obj;
@ -4251,7 +4261,6 @@ static int testStoragePoolIsPersistent(virStoragePoolPtr pool)
} }
static int static int
testStoragePoolCreate(virStoragePoolPtr pool, testStoragePoolCreate(virStoragePoolPtr pool,
unsigned int flags) unsigned int flags)
@ -4286,6 +4295,7 @@ testStoragePoolCreate(virStoragePoolPtr pool,
return ret; return ret;
} }
static char * static char *
testConnectFindStoragePoolSources(virConnectPtr conn ATTRIBUTE_UNUSED, testConnectFindStoragePoolSources(virConnectPtr conn ATTRIBUTE_UNUSED,
const char *type, const char *type,
@ -4440,6 +4450,7 @@ testStoragePoolCreateXML(virConnectPtr conn,
return ret; return ret;
} }
static virStoragePoolPtr static virStoragePoolPtr
testStoragePoolDefineXML(virConnectPtr conn, testStoragePoolDefineXML(virConnectPtr conn,
const char *xml, const char *xml,
@ -4487,6 +4498,7 @@ testStoragePoolDefineXML(virConnectPtr conn,
return ret; return ret;
} }
static int static int
testStoragePoolUndefine(virStoragePoolPtr pool) testStoragePoolUndefine(virStoragePoolPtr pool)
{ {
@ -4519,6 +4531,7 @@ testStoragePoolUndefine(virStoragePoolPtr pool)
return ret; return ret;
} }
static int static int
testStoragePoolBuild(virStoragePoolPtr pool, testStoragePoolBuild(virStoragePoolPtr pool,
unsigned int flags) unsigned int flags)
@ -4712,6 +4725,7 @@ testStoragePoolGetInfo(virStoragePoolPtr pool,
return ret; return ret;
} }
static char * static char *
testStoragePoolGetXMLDesc(virStoragePoolPtr pool, testStoragePoolGetXMLDesc(virStoragePoolPtr pool,
unsigned int flags) unsigned int flags)
@ -4733,6 +4747,7 @@ testStoragePoolGetXMLDesc(virStoragePoolPtr pool,
return ret; return ret;
} }
static int static int
testStoragePoolGetAutostart(virStoragePoolPtr pool, testStoragePoolGetAutostart(virStoragePoolPtr pool,
int *autostart) int *autostart)
@ -4757,6 +4772,7 @@ testStoragePoolGetAutostart(virStoragePoolPtr pool,
return ret; return ret;
} }
static int static int
testStoragePoolSetAutostart(virStoragePoolPtr pool, testStoragePoolSetAutostart(virStoragePoolPtr pool,
int autostart) int autostart)
@ -4867,6 +4883,7 @@ testStoragePoolListAllVolumes(virStoragePoolPtr obj,
return ret; return ret;
} }
static virStorageVolPtr static virStorageVolPtr
testStorageVolLookupByName(virStoragePoolPtr pool, testStorageVolLookupByName(virStoragePoolPtr pool,
const char *name ATTRIBUTE_UNUSED) const char *name ATTRIBUTE_UNUSED)
@ -4940,6 +4957,7 @@ testStorageVolLookupByKey(virConnectPtr conn,
return ret; return ret;
} }
static virStorageVolPtr static virStorageVolPtr
testStorageVolLookupByPath(virConnectPtr conn, testStorageVolLookupByPath(virConnectPtr conn,
const char *path) const char *path)
@ -4976,6 +4994,7 @@ testStorageVolLookupByPath(virConnectPtr conn,
return ret; return ret;
} }
static virStorageVolPtr static virStorageVolPtr
testStorageVolCreateXML(virStoragePoolPtr pool, testStorageVolCreateXML(virStoragePoolPtr pool,
const char *xmldesc, const char *xmldesc,
@ -5042,6 +5061,7 @@ testStorageVolCreateXML(virStoragePoolPtr pool,
return ret; return ret;
} }
static virStorageVolPtr static virStorageVolPtr
testStorageVolCreateXMLFrom(virStoragePoolPtr pool, testStorageVolCreateXMLFrom(virStoragePoolPtr pool,
const char *xmldesc, const char *xmldesc,
@ -5119,6 +5139,7 @@ testStorageVolCreateXMLFrom(virStoragePoolPtr pool,
return ret; return ret;
} }
static int static int
testStorageVolDelete(virStorageVolPtr vol, testStorageVolDelete(virStorageVolPtr vol,
unsigned int flags) unsigned int flags)
@ -5171,7 +5192,8 @@ testStorageVolDelete(virStorageVolPtr vol,
} }
static int testStorageVolumeTypeForPool(int pooltype) static int
testStorageVolumeTypeForPool(int pooltype)
{ {
switch (pooltype) { switch (pooltype) {
@ -5184,6 +5206,7 @@ static int testStorageVolumeTypeForPool(int pooltype)
} }
} }
static int static int
testStorageVolGetInfo(virStorageVolPtr vol, testStorageVolGetInfo(virStorageVolPtr vol,
virStorageVolInfoPtr info) virStorageVolInfoPtr info)
@ -5223,6 +5246,7 @@ testStorageVolGetInfo(virStorageVolPtr vol,
return ret; return ret;
} }
static char * static char *
testStorageVolGetXMLDesc(virStorageVolPtr vol, testStorageVolGetXMLDesc(virStorageVolPtr vol,
unsigned int flags) unsigned int flags)
@ -5260,6 +5284,7 @@ testStorageVolGetXMLDesc(virStorageVolPtr vol,
return ret; return ret;
} }
static char * static char *
testStorageVolGetPath(virStorageVolPtr vol) testStorageVolGetPath(virStorageVolPtr vol)
{ {