lkml.org 
[lkml]   [1999]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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.


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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site