]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Enable forgotten VIR_CONNECT_LIST_STORAGE_POOLS_* flags
authorJiri Denemark <jdenemar@redhat.com>
Mon, 13 Mar 2017 08:20:35 +0000 (09:20 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 13 Mar 2017 08:29:37 +0000 (09:29 +0100)
VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE and
VIR_CONNECT_LIST_STORAGE_POOLS_ZFS were added to libvirt but the listing
API was not properly updated to use them.

https://bugzilla.redhat.com/show_bug.cgi?id=1431543

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/conf/storage_conf.c
src/conf/storage_conf.h

index a52eeba07488cd5fd52543b9b6770f9e4a6275bd..3cfaf2b9bc7679a826ede857a2d0946240b6717d 100644 (file)
@@ -2671,7 +2671,11 @@ virStoragePoolMatch(virStoragePoolObjPtr poolobj,
               (MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG) &&
                (poolobj->def->type == VIR_STORAGE_POOL_SHEEPDOG)) ||
               (MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER) &&
-               (poolobj->def->type == VIR_STORAGE_POOL_GLUSTER))))
+               (poolobj->def->type == VIR_STORAGE_POOL_GLUSTER)) ||
+              (MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_ZFS) &&
+               poolobj->def->type == VIR_STORAGE_POOL_ZFS)       ||
+              (MATCH(VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE) &&
+               poolobj->def->type == VIR_STORAGE_POOL_VSTORAGE)))
             return false;
     }
 
index 1723afc0a3c68b0249ccecd954886a500459196e..c3a88d28482f662282660375f921d5a55fde9e3c 100644 (file)
@@ -544,7 +544,8 @@ VIR_ENUM_DECL(virStoragePartedFs)
                  VIR_CONNECT_LIST_STORAGE_POOLS_RBD      | \
                  VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG | \
                  VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER  | \
-                 VIR_CONNECT_LIST_STORAGE_POOLS_ZFS)
+                 VIR_CONNECT_LIST_STORAGE_POOLS_ZFS      | \
+                 VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE)
 
 # define VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_ALL                  \
                 (VIR_CONNECT_LIST_STORAGE_POOLS_FILTERS_ACTIVE     | \