funny inconsistency in error returns

Andries.Brouwer@cwi.nl
Fri, 19 Feb 1999 21:44:58 +0100 (MET)


I see ENXIO upon open("/dev/hdd"), and ENODEV upon open("/dev/hde");
It is clear why this happens
(hde has major 33, and blkdev_open does not know it and returns -ENODEV;
hdd has major 22, known since hdc exists, and ide_open returns -ENXIO).
Both error numbers are OK, but the inconsistency is a microscopic flaw.
Maybe ide_open() should also return ENODEV.

Andries

[PS I just added ENODEV and ENXIO to the list of possible errors in open.2]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/