mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Detect all unknown non-removable media as HDD
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user