If the qcow2 data file feature (which separates the data into a separate
file from the metadata) is in use the migration safety check ought to
consider both the metadata and the data file for safe migration.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
&requires_safe_cache) < 0)
return false;
+ if (disk->src->dataFileStore &&
+ qemuMigrationSrcCheckStorageSourceSafety(disk->src->dataFileStore,
+ cfg, &unsafe_storage,
+ &requires_safe_cache) < 0)
+ return false;
+
if (unsafe_storage) {
virReportError(VIR_ERR_MIGRATE_UNSAFE, "%s",
_("Migration without shared storage is unsafe"));