From 641fdb342ef0d4717ef26837b499ede893189114 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 27 Mar 2022 18:05:04 +0200 Subject: [PATCH] [DISKPART] Store full scsi address in the diskentry --- base/system/diskpart/diskpart.h | 5 +++-- base/system/diskpart/partlist.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/base/system/diskpart/diskpart.h b/base/system/diskpart/diskpart.h index c7a453ed241..b961e1e7f37 100644 --- a/base/system/diskpart/diskpart.h +++ b/base/system/diskpart/diskpart.h @@ -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; diff --git a/base/system/diskpart/partlist.c b/base/system/diskpart/partlist.c index 2113373ce83..6d91e385571 100644 --- a/base/system/diskpart/partlist.c +++ b/base/system/diskpart/partlist.c @@ -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);