mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move MediaTypeFromSCSI to MediaTypeFromDevice.
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
<Compile Include="Metadata\Version.cs" />
|
<Compile Include="Metadata\Version.cs" />
|
||||||
<Compile Include="Partition.cs" />
|
<Compile Include="Partition.cs" />
|
||||||
<Compile Include="MediaType.cs" />
|
<Compile Include="MediaType.cs" />
|
||||||
<Compile Include="MediaTypeFromSCSI.cs" />
|
<Compile Include="MediaTypeFromDevice.cs" />
|
||||||
<Compile Include="PluginBase.cs" />
|
<Compile Include="PluginBase.cs" />
|
||||||
<Compile Include="Structs\Devices\ATA\Identify.cs" />
|
<Compile Include="Structs\Devices\ATA\Identify.cs" />
|
||||||
<Compile Include="Structs\Devices\SCSI\Enums.cs" />
|
<Compile Include="Structs\Devices\SCSI\Enums.cs" />
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ using System;
|
|||||||
namespace DiscImageChef.CommonTypes
|
namespace DiscImageChef.CommonTypes
|
||||||
{
|
{
|
||||||
#pragma warning disable RECS0063 // Warns when a culture-aware 'StartsWith' call is used by default.
|
#pragma warning disable RECS0063 // Warns when a culture-aware 'StartsWith' call is used by default.
|
||||||
public static class MediaTypeFromScsi
|
public static class MediaTypeFromDevice
|
||||||
{
|
{
|
||||||
/// <summary>Tries to guess, from SCSI information, the media type of a device and/or its inserted media</summary>
|
/// <summary>Tries to guess, from SCSI information, the media type of a device and/or its inserted media</summary>
|
||||||
/// <param name="scsiPeripheralType">The SCSI Peripheral Type as indicated in the INQUIRY response</param>
|
/// <param name="scsiPeripheralType">The SCSI Peripheral Type as indicated in the INQUIRY response</param>
|
||||||
@@ -52,8 +52,8 @@ namespace DiscImageChef.CommonTypes
|
|||||||
/// <param name="blocks">How many blocks are on the media</param>
|
/// <param name="blocks">How many blocks are on the media</param>
|
||||||
/// <param name="blockSize">Size in bytes of each block</param>
|
/// <param name="blockSize">Size in bytes of each block</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static MediaType Get(byte scsiPeripheralType, string vendor, string model, byte mediumType,
|
public static MediaType GetFromScsi(byte scsiPeripheralType, string vendor, string model, byte mediumType,
|
||||||
byte densityCode, ulong blocks, uint blockSize)
|
byte densityCode, ulong blocks, uint blockSize)
|
||||||
{
|
{
|
||||||
switch(scsiPeripheralType)
|
switch(scsiPeripheralType)
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user