示例#1
0
        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);
        }
示例#2
0
 private bool LocalToLocalMove()
 {
     return(TheSR.IsLocalSR() && existingVDIs != null && existingVDIs.Length > 0 && existingVDIs.All(vdi => vdi.Connection.Resolve(vdi.SR).IsLocalSR()));
 }