mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 02:04:13 +03:00
storage: Fix test failures with reflink check
This commit is contained in:
parent
84decb61f8
commit
271e248a41
@ -601,7 +601,8 @@ class StorageVolume(_StorageObject):
|
||||
def _get_reflink(self):
|
||||
return self._reflink
|
||||
def _set_reflink(self, reflink):
|
||||
if not self.conn.check_support(self.conn.SUPPORT_POOL_REFLINK):
|
||||
if (reflink and not
|
||||
self.conn.check_support(self.conn.SUPPORT_POOL_REFLINK)):
|
||||
raise ValueError(_("Creating storage by btrfs COW copy is"
|
||||
" not supported by this libvirt version."))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user