private bool CanMigrate(VDI vdi) { if (TheSR == null || vdi == null) { return(false); } bool toLocal = TheSR.IsLocalSR(); if (toLocal && !HomeHostCanSeeTargetSr(vdi)) { return(false); } bool fromLocal = vdi.Connection.Resolve(vdi.SR).IsLocalSR(); if (fromLocal && toLocal) { return(false); } return(true); }
private bool LocalToLocalMove() { return(TheSR.IsLocalSR() && existingVDIs != null && existingVDIs.Length > 0 && existingVDIs.All(vdi => vdi.Connection.Resolve(vdi.SR).IsLocalSR())); }