FreeBSD triple panics on parallel ATA devices.

This commit is contained in:
2017-12-11 19:29:19 +00:00
parent 8809e83aff
commit 8f988c6e8b

View File

@@ -91,6 +91,12 @@ namespace DiscImageChef.Devices
lastError = Marshal.GetLastWin32Error();
}
FreeBSD.cam_device camDevice =
(FreeBSD.cam_device)Marshal.PtrToStructure((IntPtr)fd, typeof(FreeBSD.cam_device));
if(StringHandlers.CToString(camDevice.sim_name) == "ata")
throw new InvalidOperationException("Parallel ATA devices are not supported on FreeBSD due to upstream bug #224250.");
break;
}
default: