Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Oct 2003 23:20:06 +0000
From:      Mark Valentine <mark@valentine.me.uk>
To:        wollman@khavrinen.lcs.mit.edu (Garrett Wollman), phk@phk.freebsd.dk
Cc:        arch@freebsd.org
Subject:   Re: Alignment of disk-I/O from userland.
Message-ID:  <200310062220.h96MK7PI061345@dotar.thuvia.org>
In-Reply-To: <mailpost.1065476850.59321@thuvia.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: wollman@khavrinen.lcs.mit.edu (Garrett Wollman)
> Date: Mon 6 Oct, 2003
> Subject: Re: Alignment of disk-I/O from userland.

> I believe that the Standard allows practically arbitrary restrictions
> on what may be done with devices (since most devices, aside from ttys,
> are outside the scope of the Standard anyway).  It says that read()
> may fail if:
> 
> [ENXIO]    A request was made of a nonexistent device, or the request
> 	   was outside the capabilities of the device.

Hmm, but it doesn't say:

  [EDOOFUS]  A request was made of a nonexistent device, or the request
	   was outside the capabilities of the device driver writer.

It would be reasonable to enforce such restrictions on a raw device if
we still had block devices around, but it doesn't seem reasonable now.

		Cheers,

		Mark.

-- 
"Tigers will do ANYTHING for a tuna fish sandwich."
"We're kind of stupid that way."   *munch* *munch*
  -- <http://www.calvinandhobbes.com>;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310062220.h96MK7PI061345>