From 023cb4929398104942e8cc9d40d213a7544e55bf Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Sun, 11 Mar 2018 15:34:56 +0000 Subject: [PATCH] storage/reflink: show size in refused volume shrink message Like e6bb282 did for lvm. --- qubes/storage/reflink.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index cc3a5db1..90174f00 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -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)