[PATCH 2.3.99-pre6.5] Re: reading a raw device starting from end

From: Stephen C. Tweedie (sct@redhat.com)
Date: Tue Apr 25 2000 - 11:42:17 EST


On Mon, Apr 24, 2000 at 06:16:03PM +0530, Amit S. Kale wrote:
> I later suggested ENXIO because that's the value solaris raw devices return
> when trying to write beyond end. Solaris raw devices as well as block devices
> return ENXIO.

Right. The patch below makes raw devices return -ENXIO on access at
or beyond the EOF. Linus, please apply. There is precedent for
ENXIO in this case, and it makes as much sense as any other error we
might return.


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/

This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:09 EST