mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
Revert "storage: Introduce internal pool support"
The internal pools were an idea in one of the first iterations of the
gluster series, which we decided not to use. Somehow the patch still
got pushed. Remove it as the internal flag isn't needed.
This reverts commit 362da8209d
.
This commit is contained in:
parent
665344da01
commit
98bbc8d59a
@ -2172,9 +2172,6 @@ static bool
|
||||
virStoragePoolMatch(virStoragePoolObjPtr poolobj,
|
||||
unsigned int flags)
|
||||
{
|
||||
if (poolobj->internal)
|
||||
return false;
|
||||
|
||||
/* filter by active state */
|
||||
if (MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_ACTIVE) &&
|
||||
!((MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE) &&
|
||||
|
@ -332,7 +332,6 @@ struct _virStoragePoolObj {
|
||||
int active;
|
||||
int autostart;
|
||||
unsigned int asyncjobs;
|
||||
bool internal;
|
||||
|
||||
virStoragePoolDefPtr def;
|
||||
virStoragePoolDefPtr newDef;
|
||||
|
@ -376,8 +376,7 @@ storageConnectNumOfStoragePools(virConnectPtr conn) {
|
||||
virStoragePoolObjPtr obj = driver->pools.objs[i];
|
||||
virStoragePoolObjLock(obj);
|
||||
if (virConnectNumOfStoragePoolsCheckACL(conn, obj->def) &&
|
||||
virStoragePoolObjIsActive(obj) &&
|
||||
!obj->internal)
|
||||
virStoragePoolObjIsActive(obj))
|
||||
nactive++;
|
||||
virStoragePoolObjUnlock(obj);
|
||||
}
|
||||
@ -402,8 +401,7 @@ storageConnectListStoragePools(virConnectPtr conn,
|
||||
virStoragePoolObjPtr obj = driver->pools.objs[i];
|
||||
virStoragePoolObjLock(obj);
|
||||
if (virConnectListStoragePoolsCheckACL(conn, obj->def) &&
|
||||
virStoragePoolObjIsActive(obj) &&
|
||||
!obj->internal) {
|
||||
virStoragePoolObjIsActive(obj)) {
|
||||
if (VIR_STRDUP(names[got], obj->def->name) < 0) {
|
||||
virStoragePoolObjUnlock(obj);
|
||||
goto cleanup;
|
||||
@ -437,8 +435,7 @@ storageConnectNumOfDefinedStoragePools(virConnectPtr conn) {
|
||||
virStoragePoolObjPtr obj = driver->pools.objs[i];
|
||||
virStoragePoolObjLock(obj);
|
||||
if (virConnectNumOfDefinedStoragePoolsCheckACL(conn, obj->def) &&
|
||||
!virStoragePoolObjIsActive(obj) &&
|
||||
!obj->internal)
|
||||
!virStoragePoolObjIsActive(obj))
|
||||
nactive++;
|
||||
virStoragePoolObjUnlock(obj);
|
||||
}
|
||||
@ -463,8 +460,7 @@ storageConnectListDefinedStoragePools(virConnectPtr conn,
|
||||
virStoragePoolObjPtr obj = driver->pools.objs[i];
|
||||
virStoragePoolObjLock(obj);
|
||||
if (virConnectListDefinedStoragePoolsCheckACL(conn, obj->def) &&
|
||||
!virStoragePoolObjIsActive(obj) &&
|
||||
!obj->internal) {
|
||||
!virStoragePoolObjIsActive(obj)) {
|
||||
if (VIR_STRDUP(names[got], obj->def->name) < 0) {
|
||||
virStoragePoolObjUnlock(obj);
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user