mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
ata_id: don't log error for libata devices on older kernels
This commit is contained in:
parent
6ed3edfb69
commit
cfdea0f647
@ -120,8 +120,13 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ioctl(fd, HDIO_GET_IDENTITY, &id)) {
|
if (ioctl(fd, HDIO_GET_IDENTITY, &id)) {
|
||||||
err("HDIO_GET_IDENTITY failed for '%s'", node);
|
if (errno == ENOTTY) {
|
||||||
rc = 3;
|
info("HDIO_GET_IDENTITY unsupported for '%s'", node);
|
||||||
|
rc = 2;
|
||||||
|
} else {
|
||||||
|
err("HDIO_GET_IDENTITY failed for '%s'", node);
|
||||||
|
rc = 3;
|
||||||
|
}
|
||||||
goto close;
|
goto close;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user