mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* DiscImageChef/Main.cs:
* DiscImageChef/Options.cs: * DiscImageChef/DiscImageChef.csproj: * DiscImageChef/Commands/MediaScan.cs: Added media-scan command. * DiscImageChef.Decoders/SCSI/Inquiry.cs: Fixes decoding for devices that follow old 5-byte SCSI INQUIRY format. * DiscImageChef.Decoders/SCSI/Sense.cs: Fixes printing of sense block missing a newline. * DiscImageChef.Devices/Device/Variables.cs: * DiscImageChef.Devices/Device/Constructor.cs: Added an IsRemovable field. * DiscImageChef.Devices/Device/ScsiCommands.cs: Fixed SCSI READ CAPACITY CDB size. Fixed READ CD-DA MSF method name. Implemented SCSI SEEK (6) and SEEK (10) commands. * DiscImageChef.Devices/Linux/Command.cs: * DiscImageChef.Devices/Windows/Command.cs: Fixed memory leaking on unmanaged heap. * DiscImageChef.Helpers/StringHandlers.cs: Fixed string conversion when input byte array is null. * DiscImageChef/Commands/MediaInfo.cs: Check for inserted medium only on removable media devices.
This commit is contained in:
@@ -232,6 +232,15 @@ namespace DiscImageChef
|
||||
public string OutputPrefix { get; set; }
|
||||
}
|
||||
|
||||
public class MediaScanSubOptions : CommonSubOptions
|
||||
{
|
||||
[Option('i', "device", Required = true, HelpText = "Device path.")]
|
||||
public string DevicePath { get; set; }
|
||||
|
||||
[Option('m', "mhdd-log", Required = false, DefaultValue = "", HelpText = "Write a log of the scan in the format used by MHDD.")]
|
||||
public string MHDDLogPath { get; set; }
|
||||
}
|
||||
|
||||
public class FormatsSubOptions : CommonSubOptions
|
||||
{
|
||||
}
|
||||
@@ -267,6 +276,7 @@ namespace DiscImageChef
|
||||
MediaInfoVerb = new MediaInfoSubOptions();
|
||||
BenchmarkVerb = new BenchmarkSubOptions();
|
||||
CreateSidecarVerb = new CreateSidecarSubOptions();
|
||||
MediaScanVerb = new MediaScanSubOptions();
|
||||
}
|
||||
|
||||
[VerbOption("analyze", HelpText = "Analyzes a disc image and searches for partitions and/or filesystems.")]
|
||||
@@ -305,6 +315,9 @@ namespace DiscImageChef
|
||||
[VerbOption("create-sidecar", HelpText = "Creates CICM Metadata XML sidecar.")]
|
||||
public CreateSidecarSubOptions CreateSidecarVerb { get; set; }
|
||||
|
||||
[VerbOption("media-scan", HelpText = "Scans the media inserted on a device.")]
|
||||
public MediaScanSubOptions MediaScanVerb { get; set; }
|
||||
|
||||
[HelpVerbOption]
|
||||
public string DoHelpForVerb(string verbName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user