MsftDiskInfo

Snapshot of a single MSFT_PhysicalDisk row used by ProxmoxDiskFilterResolver. Captured into a POCO so the resolver can be unit-tested without WMI.

UniqueIdFormat values per MSFT spec: 0 = Vendor Specific, 1 = Vendor Id, 2 = EUI64, 3 = FCPH Name, 8 = SCSI Name String. Formats 1, 2, 3, 8 are the ones that yield stable WWN-like identifiers matching udev ID_WWN.

public sealed record MsftDiskInfo : IEquatable<MsftDiskInfo>

1. Constructors

1.1. MsftDiskInfo(string, string, string, ushort)

Snapshot of a single MSFT_PhysicalDisk row used by ProxmoxDiskFilterResolver. Captured into a POCO so the resolver can be unit-tested without WMI.

UniqueIdFormat values per MSFT spec: 0 = Vendor Specific, 1 = Vendor Id, 2 = EUI64, 3 = FCPH Name, 8 = SCSI Name String. Formats 1, 2, 3, 8 are the ones that yield stable WWN-like identifiers matching udev ID_WWN.

public MsftDiskInfo(string Model, string SerialNumber, string UniqueId, ushort UniqueIdFormat)
Table 1. Parameters
Name Type Description

Model

string

SerialNumber

string

UniqueId

string

UniqueIdFormat

ushort

2. Properties

2.1. Model

public string Model { get; init; }

2.2. SerialNumber

public string SerialNumber { get; init; }

2.3. UniqueId

public string UniqueId { get; init; }

2.4. UniqueIdFormat

public ushort UniqueIdFormat { get; init; }

3. Operators

3.1. operator !=(MsftDiskInfo, MsftDiskInfo)

public static bool operator !=(MsftDiskInfo left, MsftDiskInfo right)
Table 2. Parameters
Name Type Description

left

MsftDiskInfo

right

MsftDiskInfo

Returns: bool

3.2. operator ==(MsftDiskInfo, MsftDiskInfo)

public static bool operator ==(MsftDiskInfo left, MsftDiskInfo right)
Table 3. Parameters
Name Type Description

left

MsftDiskInfo

right

MsftDiskInfo

Returns: bool