mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Disable READ_MULTIPLE_BLOCK usage in Linux as it seems the ioctl(2) does not atomically accept SET_BLOCK_COUNT.
This commit is contained in:
@@ -164,6 +164,15 @@ namespace Aaru.Devices
|
||||
if(Error)
|
||||
throw new DeviceException(LastError);
|
||||
|
||||
// Seems ioctl(2) does not allow the atomicity needed
|
||||
if(_remote is null)
|
||||
{
|
||||
if(PlatformId == PlatformID.Linux)
|
||||
_readMultipleBlockCannotSetBlockCount = true;
|
||||
}
|
||||
else if(_remote.ServerOperatingSystem == "Linux")
|
||||
_readMultipleBlockCannotSetBlockCount = true;
|
||||
|
||||
Type = DeviceType.Unknown;
|
||||
ScsiType = PeripheralDeviceTypes.UnknownDevice;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user