Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final part of /var/tmp monitoring during backup restore #165

Merged
merged 6 commits into from
Jan 27, 2021

Conversation

marmarek
Copy link
Member

@marmarek marmarek commented Jan 5, 2021

This adds the final part - the case of restoring backup directly from dom0.
And also adds a test for this.

Fixes QubesOS/qubes-issues#4791

This will be useful for tests.

QubesOS/qubes-issues#
Avoid failing restore after potentially lengthy processing - check
available space first.

This will be even more important after adding waiting for free space -
then if there won't be enough free space, the process will deadlock.

QubesOS/qubes-issues#4791
Instead of failing the restore process, pause data extracting, until
already extracted data gets processed.
This commit implements this for local tar extraction. Extracting data
received from a VM is handled in qfile-(dom0-)unpacker, which also has
similar feature, turned on in 6338b93.

Fixes QubesOS/qubes-issues#4791
Storing encrypted filename into f_name shadowed unencrypted source file
name.
This test uses three tricks to test /var/tmp space monitoring:
1. Creates a big uncompressed backup (2GB file instead of few bytes)
2. Mount small tmpfs over /var/tmp (650MB - minimal space that should
   not deadlock the restore)
3. Artificially slow down data processing by adding sleep()

QubesOS/qubes-issues#4791
@qubesos-bot
Copy link

qubesos-bot commented Jan 9, 2021

OpenQA test summary

Complete test suite and dependencies: https://openqa.qubes-os.org/tests/15656#dependencies

Failed tests

New failures

Compared to: https://openqa.qubes-os.org/tests/12774#dependencies

Fixed failures

Compared to: https://openqa.qubes-os.org/tests/12774#dependencies

@marmarek marmarek merged commit 0f42fd0 into QubesOS:master Jan 27, 2021
@marmarek marmarek deleted the backup-tmp-space branch September 11, 2021 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants