storage/file: add is_outdated() that always returns False

Fixes QubesOS/qubes-issues#6398
This commit is contained in:
Rusty Bird 2021-02-15 14:10:46 +00:00
parent 87b9ed2a5f
commit c7d74f2a63
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -219,6 +219,9 @@ class FileVolume(qubes.storage.Volume):
if self.snap_on_start or self.save_on_stop:
_remove_if_exists(self.path_cow)
def is_outdated(self):
return False # avoid spamming the log with NotImplementedError
def is_dirty(self):
if self.save_on_stop:
with suppress(FileNotFoundError), open(self.path_cow, 'rb') as cow: