diskbackend: Get volume path from XML

The XML is likely already cached, and path() can hit the network, so
this can speed things up.
This commit is contained in:
Cole Robinson 2014-09-12 13:11:40 -04:00
parent 3064f4058d
commit f512c05381

View File

@ -460,7 +460,7 @@ class StorageBackend(_StorageBase):
def _get_path(self):
if self._vol_object:
return self._vol_object.path()
return self._get_vol_xml().target_path
return self._path
path = property(_get_path)