[lkml]   [1999]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectfunny inconsistency in error returns

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.


[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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.035 / U:11.188 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site