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:
|
||||
raise qubes.storage.StoragePoolException(
|
||||
'For your own safety, shrinking of {!s} is disabled.'
|
||||
' If you really know what you are doing,'
|
||||
' use "truncate" manually.'.format(self.vid))
|
||||
'For your own safety, shrinking of {!s} is disabled'
|
||||
' ({:d} < {:d}). If you really know what you are doing,'
|
||||
' use "truncate" manually.'.format(self.vid, size, self.size))
|
||||
|
||||
try: # assume volume is not (cleanly) stopped ...
|
||||
_resize_file(self._path_dirty, size)
|
||||
|
Loading…
Reference in New Issue
Block a user