libvirt/src/storage
Erik Skultety f92f31213a storage: Fix regression in storagePoolUpdateAllState
Commit 2a31c5f0 introduced support for storage pool state XMLs, however
it also introduced a regression:

if (!virstoragePoolObjIsActive(pool)) {
    virStoragePoolObjUnlock(pool);
    continue;
}

The idea behind this was that since we've got state XMLs and the pool
wasn't marked as active by autostart routine (if the autostart flag had been
set earlier), the pool is inactive and we can leave it be and continue with
other pools. However, filesystem type pools like fs,dir, possibly netfs are
supposed to be active if the filesystem is mounted on the host. And this is
exactly where the regression occurs, e.g. pool type 'dir' which has been
previously destroyed and marked as !autostart gets filtered out
by the condition above.
The resolution should be simply to remove the condition completely,
all pools will get their 'active' flag updated by check callback and if
they do not support such callback, the logic doesn't change and such
pools will be inactive by default (e.g. RBD, even if a state XML exists).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1238610
2015-07-08 12:21:25 +02:00
..
parthelper.c Remove unnecessary curly brackets in src/storage/ 2014-11-14 17:13:01 +01:00
storage_backend_disk.c storage: Force setting of disk format type 2015-06-23 09:25:24 -04:00
storage_backend_disk.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_fs.c storage: Set correct vol->type at VolCreate 2015-06-30 06:49:49 -04:00
storage_backend_fs.h storage: add file functions for local and block files 2014-02-14 10:47:57 +01:00
storage_backend_gluster.c Revert "Restore skipping of setting capacity" 2015-03-02 08:07:11 +01:00
storage_backend_gluster.h storage: Add storage file backends for gluster 2014-02-14 11:07:23 +01:00
storage_backend_iscsi.c iscsi: do not fail to stop a stopped pool 2015-04-30 13:05:10 +02:00
storage_backend_iscsi.h Move functions using iscsiadm to viriscsi.c 2014-03-20 18:04:50 +01:00
storage_backend_logical.c logical: Fix typo in error message 2015-06-09 18:21:57 -04:00
storage_backend_logical.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_mpath.c mpath: Update path in CheckPool function 2015-06-30 08:47:02 -04:00
storage_backend_mpath.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
storage_backend_rbd.c storage: RBD: do not return error when deleting non-existent volume 2015-06-02 15:02:10 +02:00
storage_backend_rbd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_scsi.c scsi: Force error for SCSI pools on virStorageBackendSCSIFindLUs failure 2015-06-24 09:18:59 -04:00
storage_backend_scsi.h storage: Move virStorageBackendSCSIGetHostNumber into iscsi backend 2013-04-08 18:41:06 +08:00
storage_backend_sheepdog.c update sheepdog client] update sheepdog client path 2015-06-19 16:05:04 +02:00
storage_backend_sheepdog.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
storage_backend_zfs.c storage: Remove unused attribute conn from 'checkPool' callback 2015-04-02 11:57:07 +02:00
storage_backend_zfs.h storage: ZFS support 2014-08-12 19:40:20 +04:00
storage_backend.c storage: conf: Don't set any default <mode> in the XML 2015-05-25 20:52:55 -04:00
storage_backend.h storage: conf: Don't set any default <mode> in the XML 2015-05-25 20:52:55 -04:00
storage_driver.c storage: Fix regression in storagePoolUpdateAllState 2015-07-08 12:21:25 +02:00
storage_driver.h storage: Introduce storagePoolLookupByTargetPath 2014-12-02 17:51:57 +01:00