storage/lvm: add more details to refused volume shrink message
Include old and new size.
This commit is contained in:
		
							parent
							
								
									4e314c9792
								
							
						
					
					
						commit
						e6bb2828f1
					
				| @ -425,9 +425,9 @@ class ThinVolume(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' |                 'For your own safety, shrinking of %s is' | ||||||
|                 ' disabled. If you really know what you' |                 ' disabled (%d < %d). If you really know what you' | ||||||
|                 ' are doing, use `lvresize` on %s manually.' % |                 ' are doing, use `lvresize` on %s manually.' % | ||||||
|                 (self.name, self.vid)) |                 (self.name, size, self.size, self.vid)) | ||||||
| 
 | 
 | ||||||
|         if size == self.size: |         if size == self.size: | ||||||
|             return |             return | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski-Górecki
						Marek Marczykowski-Górecki