]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: fs: Don't fail volume update if backing store isn't accessible
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Jul 2014 12:41:58 +0000 (14:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Jul 2014 09:42:52 +0000 (11:42 +0200)
When the backing store of a volume wasn't accessible while updating the
volume definition the call would fail altogether. In cases where we
currently (incorrectly) treat remote backing stores as local one this
might lead to strange errors.

Ignore the opening errors until we figure out how to track proper volume
metadata.

src/storage/storage_backend.c

index f5bfdee3dc31c5322681f57c9d1e6f7d07cdbf99..fdcaadad7767900178f79bbe75636c233213c64c 100644 (file)
@@ -1465,7 +1465,8 @@ virStorageBackendUpdateVolInfo(virStorageVolDefPtr vol,
         (ret = virStorageBackendUpdateVolTargetInfo(vol->target.backingStore,
                                                     updateCapacity,
                                                     withBlockVolFormat,
-                                                    VIR_STORAGE_VOL_OPEN_DEFAULT)) < 0)
+                                                    VIR_STORAGE_VOL_OPEN_DEFAULT |
+                                                    VIR_STORAGE_VOL_OPEN_NOERROR) < 0))
         return ret;
 
     return 0;