Exemple #1
0
        public override void MapDisks(IEnumerable <VirtualDisk> disks, Dictionary <string, LogicalVolumeInfo> result)
        {
            DynamicDiskManager mgr = new DynamicDiskManager();

            foreach (var disk in disks)
            {
                if (DynamicDiskManager.IsDynamicDisk(disk))
                {
                    mgr.Add(disk);
                }
            }

            foreach (var vol in mgr.GetLogicalVolumes())
            {
                result.Add(vol.Identity, vol);
            }
        }
Exemple #2
0
 public override bool HandlesPhysicalVolume(PhysicalVolumeInfo volume)
 {
     return(DynamicDiskManager.HandlesPhysicalVolume(volume));
 }