incusd/instance/drivers: Prevent migration of dependent disk during final sync

In near-live migration, dependent volumes are handled separately
during the third pass. Including them in the final sync is
redundant and should be prevented.

Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
This commit is contained in:
Piotr Resztak 2026-07-30 18:15:44 +02:00
parent 9828800f04
commit 9cbdfa03ab

View File

@ -6548,6 +6548,7 @@ func (d *lxc) MigrateSend(args instance.MigrateSendArgs) error {
volSourceArgs.FinalSync = true
volSourceArgs.Snapshots = nil
volSourceArgs.Info.Config.VolumeSnapshots = nil
volSourceArgs.DependentVolumes = nil
err = pool.MigrateInstance(d, filesystemConn, volSourceArgs, d.op)
if err != nil {