コード例 #1
0
        public static List <DiskGroupDatabase> ReadFromPhysicalDisks()
        {
            List <DynamicDisk> dynamicDisks = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks();

            return(DiskGroupDatabase.ReadFromDisks(dynamicDisks));
        }
コード例 #2
0
ファイル: LockManager.cs プロジェクト: lulzzz/iSCSIConsole
        public static LockStatus LockDynamicDiskGroup(Guid diskGroupGuid, bool lockAllDynamicVolumes)
        {
            List <DynamicDisk> disksToLock = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks(diskGroupGuid);

            return(LockDynamicDiskGroup(disksToLock, lockAllDynamicVolumes));
        }
コード例 #3
0
        public static DiskGroupDatabase ReadFromPhysicalDisks(Guid diskGroupGuid)
        {
            List <DynamicDisk> dynamicDisks = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks(diskGroupGuid);

            return(DiskGroupDatabase.ReadFromDisks(dynamicDisks, diskGroupGuid));
        }
コード例 #4
0
        public static List <DynamicVolume> GetDynamicVolumes()
        {
            List <DynamicDisk> disks = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks();

            return(DynamicVolumeHelper.GetDynamicVolumes(disks));
        }
コード例 #5
0
        public static void OnlineDiskGroup(Guid diskGroupGuid)
        {
            List <DynamicDisk> disksToOnline = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks(diskGroupGuid);

            OnlineAll(disksToOnline);
        }
コード例 #6
0
        /// <summary>
        /// Will not persist across reboots
        /// </summary>
        public static bool OfflineDiskGroup(Guid diskGroupGuid)
        {
            List <DynamicDisk> disksToOffline = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks(diskGroupGuid);

            return(OfflineAllOrNone(disksToOffline));
        }
コード例 #7
0
        public static bool IsDiskGroupOnlineAndWritable(Guid diskGroupGuid)
        {
            List <DynamicDisk> diskGroup = WindowsDynamicDiskHelper.GetPhysicalDynamicDisks(diskGroupGuid);

            return(IsDiskGroupOnlineAndWritable(diskGroup));
        }