Fix file storage resize
This commit is contained in:
parent
d72448615d
commit
d63d93b0ab
@ -137,6 +137,12 @@ class Volume(object):
|
|||||||
def size(self):
|
def size(self):
|
||||||
return self._size
|
return self._size
|
||||||
|
|
||||||
|
@size.setter
|
||||||
|
def size(self, size):
|
||||||
|
# pylint: disable=attribute-defined-outside-init
|
||||||
|
self._size = int(size)
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def config(self):
|
def config(self):
|
||||||
''' return config data for serialization to qubes.xml '''
|
''' return config data for serialization to qubes.xml '''
|
||||||
|
@ -404,6 +404,12 @@ class ThinVolume(qubes.storage.Volume):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
return self._size
|
return self._size
|
||||||
|
|
||||||
|
@size.setter
|
||||||
|
def size(self, _):
|
||||||
|
raise qubes.storage.StoragePoolException(
|
||||||
|
"You shouldn't use lvm size setter")
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def usage(self): # lvm thin usage always returns at least the same usage as
|
def usage(self): # lvm thin usage always returns at least the same usage as
|
||||||
# the parent
|
# the parent
|
||||||
|
Loading…
Reference in New Issue
Block a user