mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Add detection and media type for ISO 15041 compliant 3.5" MO 540Mb disks.
This commit is contained in:
@@ -94,6 +94,12 @@ namespace Aaru.CommonTypes
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ECMA_183_512;
|
||||
case 1041500:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
"SCSI medium type is {0:X2}h, media has {1} blocks of {2} bytes, setting media type to ISO 15041 conforming 3½\" magneto-optical.",
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ISO_15041_512;
|
||||
case 1128772:
|
||||
case 1163337:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
|
||||
@@ -628,6 +628,12 @@ namespace Aaru.CommonTypes
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ECMA_183_512;
|
||||
case 1041500 when mediumType == 0x01 || mediumType == 0x02:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
"SCSI medium type is {0:X2}h, media has {1} blocks of {2} bytes, setting media type to ISO 15041 conforming 3½\" magneto-optical.",
|
||||
mediumType, blocks, blockSize);
|
||||
|
||||
return MediaType.ISO_15041_512;
|
||||
case 1128772 when mediumType == 0x01 || mediumType == 0x02:
|
||||
case 1163337 when mediumType == 0x01 || mediumType == 0x02:
|
||||
AaruConsole.DebugWriteLine("Media detection",
|
||||
|
||||
Reference in New Issue
Block a user