From 677183d8a6932aa9e8dae8de29c8047b222d6412 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Sun, 9 Sep 2018 20:01:12 +0000 Subject: [PATCH] storage/reflink: add revision even if empty It's sort of useful to be able to revert a volume that has only ever been started once to its empty state. And the lvm_thin driver allows it too, so why not. --- qubes/storage/reflink.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/qubes/storage/reflink.py b/qubes/storage/reflink.py index e541555c..2a0321b0 100644 --- a/qubes/storage/reflink.py +++ b/qubes/storage/reflink.py @@ -184,8 +184,6 @@ class ReflinkVolume(qubes.storage.Volume): def _add_revision(self): if self.revisions_to_keep == 0: return - if _get_file_disk_usage(self._path_clean) == 0: - return ctime = os.path.getctime(self._path_clean) timestamp = qubes.storage.isodate(int(ctime)) _copy_file(self._path_clean,