1
0
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:
Matthias Schwarzott 2007-04-29 00:08:30 +02:00 committed by Kay Sievers
parent 6ed3edfb69
commit cfdea0f647

View File

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