storage/reflink: show size in refused volume shrink message
Like e6bb282
did for lvm.
This commit is contained in:
parent
c31d317c63
commit
023cb49293
@ -223,9 +223,9 @@ class ReflinkVolume(qubes.storage.Volume):
|
|||||||
|
|
||||||
if size < self.size:
|
if size < self.size:
|
||||||
raise qubes.storage.StoragePoolException(
|
raise qubes.storage.StoragePoolException(
|
||||||
'For your own safety, shrinking of {!s} is disabled.'
|
'For your own safety, shrinking of {!s} is disabled'
|
||||||
' If you really know what you are doing,'
|
' ({:d} < {:d}). If you really know what you are doing,'
|
||||||
' use "truncate" manually.'.format(self.vid))
|
' use "truncate" manually.'.format(self.vid, size, self.size))
|
||||||
|
|
||||||
try: # assume volume is not (cleanly) stopped ...
|
try: # assume volume is not (cleanly) stopped ...
|
||||||
_resize_file(self._path_dirty, size)
|
_resize_file(self._path_dirty, size)
|
||||||
|
Loading…
Reference in New Issue
Block a user