From 1a6a446520fe4c8e8e1b54ff262b445dd7d32bb5 Mon Sep 17 00:00:00 2001 From: Darkstar Date: Wed, 28 Jul 2021 21:19:24 +0200 Subject: [PATCH] Detect all unknown non-removable media as HDD --- Aaru.Core/Media/Info/ScsiInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Aaru.Core/Media/Info/ScsiInfo.cs b/Aaru.Core/Media/Info/ScsiInfo.cs index ff98b301d..9b30ba2da 100644 --- a/Aaru.Core/Media/Info/ScsiInfo.cs +++ b/Aaru.Core/Media/Info/ScsiInfo.cs @@ -1450,6 +1450,10 @@ namespace Aaru.Core.Media.Info containsFloppyPage) MediaType = MediaType.FlashDrive; + if(MediaType == MediaType.Unknown && + !dev.IsRemovable) + MediaType = MediaType.GENERIC_HDD; + if(DeviceInfo.ScsiType != PeripheralDeviceTypes.MultiMediaDevice || (dev.IsUsb && (scsiMediumType == 0x40 || scsiMediumType == 0x41 || scsiMediumType == 0x42))) return;