Replace QubesVM.verify_files() with Storage.verify_files()

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-06-16 21:03:53 +02:00
parent 296fa17322
commit d56f02598a
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -701,7 +701,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
self.fire_event_pre('domain-pre-start', preparing_dvm=preparing_dvm,
start_guid=start_guid, mem_required=mem_required)
self.verify_files()
self.storage.verify_files()
if self.netvm is not None:
if self.netvm.qid != 0:
@ -1517,20 +1517,6 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
'libvirt error code: {!r}'.format(e.get_error_code()))
raise
# TODO move to storage
def verify_files(self):
'''Verify that files accessed by this machine are sane.
On success, returns normally. On failure, raises exception.
'''
self.storage.verify_files()
self.fire_event('domain-verify-files')
return True
# miscellanous
def get_start_time(self):