From 6e592a56d71367653adf5eb06d20a6f9d4e158de Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Fri, 28 Jun 2019 10:29:31 +0000 Subject: [PATCH] storage/reflink: update comment and whitespace --- qubes/storage/reflink.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index 0deee188..fee1cddd 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -266,18 +266,16 @@ class ReflinkVolume(qubes.storage.Volume): @_coroutinized @_locked def resize(self, size): - ''' Resize a read-write volume image; notify any corresponding - loop devices of the size change. + ''' Resize a read-write volume; notify any corresponding loop + devices of the size change. ''' if not self.rw: raise qubes.storage.StoragePoolException( 'Cannot resize: {} is read-only'.format(self.vid)) - for path in (self._path_dirty, self._path_clean): with suppress(FileNotFoundError): _resize_file(path, size) break - self._size = size if path == self._path_dirty: _update_loopdev_sizes(self._path_dirty)