From: John Ferlan Date: Thu, 8 Oct 2015 17:28:23 +0000 (-0400) Subject: storage: Remove duplicitous refreshVol in RBD buildVol X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9cb36def827973e2cadc8e5976c0b9da80b49ff6;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git storage: Remove duplicitous refreshVol in RBD buildVol As of commit id '155ca616' a 'refreshVol' is called after the buildVol succeeds in storageVolCreateXML, thus the volStorageBackendRBDRefreshVolInfo call in virStorageBackendRBDBuildVol is no longer necessary. Signed-off-by: John Ferlan --- diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c index ac5085a9c..5ae471326 100644 --- a/src/storage/storage_backend_rbd.c +++ b/src/storage/storage_backend_rbd.c @@ -532,9 +532,6 @@ virStorageBackendRBDBuildVol(virConnectPtr conn, goto cleanup; } - if (volStorageBackendRBDRefreshVolInfo(vol, pool, &ptr) < 0) - goto cleanup; - ret = 0; cleanup: