[DISKPART] Store full scsi address in the diskentry

This commit is contained in:
Eric Kohl 2022-03-27 18:05:04 +02:00
parent 5a63f3e85a
commit 641fdb342e
2 changed files with 6 additions and 4 deletions

View file

@ -152,8 +152,9 @@ typedef struct _DISKENTRY
ULONG DiskNumber;
USHORT Port;
USHORT Bus;
USHORT Id;
USHORT PathId;
USHORT TargetId;
USHORT Lun;
/* Has the partition list been modified? */
BOOLEAN Dirty;

View file

@ -936,8 +936,9 @@ AddDiskToList(
DiskEntry->DiskNumber = DiskNumber;
DiskEntry->Port = ScsiAddress.PortNumber;
DiskEntry->Bus = ScsiAddress.PathId;
DiskEntry->Id = ScsiAddress.TargetId;
DiskEntry->PathId = ScsiAddress.PathId;
DiskEntry->TargetId = ScsiAddress.TargetId;
DiskEntry->Lun = ScsiAddress.Lun;
GetDriverName(DiskEntry);