From: Peter Krempa Date: Tue, 15 Jul 2014 12:41:58 +0000 (+0200) Subject: storage: fs: Don't fail volume update if backing store isn't accessible X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=70120e2f5de21127d9e47b26a02880e74a053760;p=libvirt.git storage: fs: Don't fail volume update if backing store isn't accessible 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. --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index f5bfdee3dc..fdcaadad77 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -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;