mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03: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)) {
|
||||
err("HDIO_GET_IDENTITY failed for '%s'", node);
|
||||
rc = 3;
|
||||
if (errno == ENOTTY) {
|
||||
info("HDIO_GET_IDENTITY unsupported for '%s'", node);
|
||||
rc = 2;
|
||||
} else {
|
||||
err("HDIO_GET_IDENTITY failed for '%s'", node);
|
||||
rc = 3;
|
||||
}
|
||||
goto close;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user