mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-02-04 00:54:33 +00:00
[PR #851] [MERGED] Make Kreon SCSI CDB10 for libata #1168
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aaru-dps/Aaru/pull/851
Author: @Deterous
Created: 8/16/2024
Status: ✅ Merged
Merged: 10/20/2024
Merged by: @claunia
Base:
devel← Head:devel📝 Commits (1)
e8a57e4Make Kreon SCSI CDB10 for libata📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
Aaru.Devices/Device/ScsiCommands/Kreon.cs(+3 -3)📄 Description
Simple bug fix
Fixes #850
Summary
This change turns the Kreon commands in Aaru into CDB10, which fixes dumping with SATA connections (
libata) on Linux. It may fix MacOS dumps as well, however Mac has never been tested to be working or not working Windows doesn't do minimum CDB command size checks, hence why Windows dumps worked in the past, and this change does not break Windows dumps.Details
Kreon SCSI commands (vendor specific
0xFF) are currently CDB6 (6-long CDB command) in Aaru.Linux's
libataexpects a minimum of 10-long CDB command: https://github.com/torvalds/linux/blob/master/drivers/ata/libata-scsi.c#L4199As a result, Aaru sends the Kreon lock state command, which returns sense data that looks like no error has occurred, so the dump continues. However,
libatanever sent the command to the driver, so the drive does not lock/unlock, and the wrong sectors are dumped.Testing
This PR follows work done by @tbejos to support Kreon dumping in redumper.
While it hasn't been tested in aaru, DIC and Redumper have both had this minor change and have been tested in Linux and Windows, so it follows that this change is required for Aaru too.
Types of changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.