2.2.1.2.19 VDS_DISK_FLAG

The VDS_DISK_FLAG enumeration defines the properties of a disk.

 typedef enum _VDS_DISK_FLAG
 {
   VDS_DF_AUDIO_CD = 0x1,
   VDS_DF_HOTSPARE = 0x2,
   VDS_DF_RESERVE_CAPABLE = 0x4,
   VDS_DF_MASKED = 0x8,
   VDS_DF_STYLE_CONVERTIBLE = 0x10,
   VDS_DF_CLUSTERED = 0x20,
   VDS_DF_READ_ONLY = 0x40,
   VDS_DF_SYSTEM_DISK = 0x80,
   VDS_DF_BOOT_DISK = 0x100,
   VDS_DF_PAGEFILE_DISK = 0x200,
   VDS_DF_HIBERNATIONFILE_DISK = 0x400,
   VDS_DF_CRASHDUMP_DISK = 0x800,
   VDS_DF_HAS_ARC_PATH = 0x1000,
   VDS_DF_DYNAMIC = 0x2000,
   VDS_DF_BOOT_FROM_DISK = 0x4000,
   VDS_DF_CURRENT_READ_ONLY = 0x8000
 } VDS_DISK_FLAG;

VDS_DF_AUDIO_CD:  The disk is an audio CD, as specified in [IEC60908].

VDS_DF_HOTSPARE:  The disk is a hot spare.

VDS_DF_RESERVE_CAPABLE:  The disk can be reserved for a host.

VDS_DF_MASKED:  The disk is currently hidden from the host.

VDS_DF_STYLE_CONVERTIBLE:  The disk is convertible between the MBR partition format and the GPT partition format.

VDS_DF_CLUSTERED:  The disk is clustered.

VDS_DF_READ_ONLY:  The disk read-only attribute is set.

VDS_DF_SYSTEM_DISK:  The disk contains the system volume.

VDS_DF_BOOT_DISK:  The disk contains the boot volume.

VDS_DF_PAGEFILE_DISK:  The disk contains the paging file on one of its volumes.

VDS_DF_HIBERNATIONFILE_DISK:  The disk contains the hibernation file on one of its volumes.

VDS_DF_CRASHDUMP_DISK:  The disk is configured to contain a crash-dump file on one of its volumes.

VDS_DF_HAS_ARC_PATH:  The disk has an Advanced RISC Computing (ARC) path specified in the BIOS. For information on ARC paths, see [KB102873].

VDS_DF_DYNAMIC:  The disk is a logical disk manager dynamic disk.

VDS_DF_BOOT_FROM_DISK:  Indicates the disk from which the machine will boot. Note that this is BIOS disk 0 on the MBR, not the current system volume disk. For example, if the machine boots to Windows PE, this flag is set on BIOS disk 0. For EFI machines, this flag is set on a disk containing the EFI system partition used to boot the machine.

VDS_DF_CURRENT_READ_ONLY:  Indicates that the disk is in a read-only state. If this flag is not set, the disk is read/write. Unlike the VDS_DF_READ_ONLY flag, which is used to indicate the disk's read-only attribute maintained by the operating system, this flag reflects the actual disk state. This flag cannot be set by using the IVdsDisk::SetFlags method or cleared by using the IVdsDisk::ClearFlags method.

The disk will be in a read-only state if its read-only attribute is set. However, a disk can be in a read-only state even if its read-only attribute is not set, if the underlying hardware is read-only. For example, if the LUN is in read-only state or if the disk is a virtual hard disk that resides on a volume that is read-only, the underlying hardware is read-only and therefore the disk is in a read-only state.