[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/18] tests/qtest/migration: Fix file migration offset ch
From: |
Peter Xu |
Subject: |
Re: [PATCH v2 02/18] tests/qtest/migration: Fix file migration offset check |
Date: |
Thu, 30 May 2024 12:14:57 -0400 |
On Thu, May 23, 2024 at 04:05:32PM -0300, Fabiano Rosas wrote:
> When doing file migration, QEMU accepts an offset that should be
> skipped when writing the migration stream to the file. The purpose of
> the offset is to allow the management layer to put its own metadata at
> the start of the file.
>
> We have tests for this in migration-test, but only testing that the
> migration stream starts at the correct offset and not that it actually
> leaves the data intact. Unsurprisingly, there's been a bug in that
> area that the tests didn't catch.
>
> Fix the tests to write some data to the offset region and check that
> it's actually there after the migration.
>
> While here, switch to using g_get_file_contents() which is more
> portable than mmap().
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- [PATCH v2 00/18] migration/mapped-ram: Add direct-io support, Fabiano Rosas, 2024/05/23
- [PATCH v2 02/18] tests/qtest/migration: Fix file migration offset check, Fabiano Rosas, 2024/05/23
- Re: [PATCH v2 02/18] tests/qtest/migration: Fix file migration offset check,
Peter Xu <=
- [PATCH v2 03/18] tests/qtest/migration: Add a precopy file test with fdset, Fabiano Rosas, 2024/05/23
- [PATCH v2 04/18] monitor: Drop monitor_fdset_dup_fd_add(), Fabiano Rosas, 2024/05/23
- [PATCH v2 05/18] monitor: Introduce monitor_fdset_*free, Fabiano Rosas, 2024/05/23
- [PATCH v2 06/18] monitor: Stop removing non-duplicated fds, Fabiano Rosas, 2024/05/23