Commit 84d7564
committed
fix(block): make prepare_save() more robust
If prepare_save() fails to drain the io_uring queues (when used) and
sync the host filesystem we might end up with a corrupted disk snapshot.
Currently, Firecracker ignores that, only emitting an error message.
Be more strict and expect no errors, so that we can have a better
post-mortem analysis of what happened.
Signed-off-by: Babis Chalios <babis.chalios@e2b.dev>1 parent 1cd9371 commit 84d7564
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
727 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
| |||
0 commit comments