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:
2020-12-10 13:53:16 +00:00
parent 6ca010d621
commit bf565954b5

View File

@@ -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;