first version of persistent QEMU

This commit is contained in:
Andrea Fioraldi
2019-09-12 12:34:53 +02:00
parent df379dfcf4
commit 6b40189045
17 changed files with 408 additions and 60 deletions

View File

@ -253,7 +253,8 @@ void write_to_testcase(void* mem, u32 len) {
if (out_file) {
//unlink(out_file); /* Ignore errors. */
// unlink(out_file); /* Ignore errors.
// */
fd = open(out_file, O_WRONLY | O_CREAT | O_TRUNC, 0600);
@ -295,7 +296,8 @@ void write_with_gap(void* mem, u32 len, u32 skip_at, u32 skip_len) {
if (out_file) {
//unlink(out_file); /* Ignore errors. */
// unlink(out_file); /* Ignore errors.
// */
fd = open(out_file, O_WRONLY | O_CREAT | O_TRUNC, 0600);