mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Starting with Linux 4.8 the SD/MMC OCR is shown also in /sys, so cache
it if present.
This commit is contained in:
@@ -211,6 +211,12 @@ namespace DiscImageChef.Devices
|
||||
if(len == 0)
|
||||
cachedScr = null;
|
||||
}
|
||||
if(System.IO.File.Exists("/sys/block/" + devPath + "/device/ocr"))
|
||||
{
|
||||
int len = ConvertFromHexASCII("/sys/block/" + devPath + "/device/ocr", out cachedOcr);
|
||||
if(len == 0)
|
||||
cachedOcr = null;
|
||||
}
|
||||
|
||||
if(cachedCid != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user