Alignment of disk-I/O from userland.
    Sam Leffler 
    sam at errno.com
       
    Mon Oct  6 17:55:20 PDT 2003
    
    
  
On Monday 06 October 2003 04:11 pm, Poul-Henning Kamp wrote:
> In message <20031006163218.L55190 at pooker.samsco.home>, Scott Long writes:
	...stuff deleted...
> >As for returning an error code for a buffer that we (arbitrarily) believe
> >to be too big to align, [...]
>
> I have never advocated returning an error based on "alignment and size",
> only based on alignment alone.
Imposing this restriction is a major semantic change that I consider a very 
bad idea.  You are basically imposing the semantics of O_DIRECT on all i/o 
operations going to a device.  I think it is important to give best effort to 
support unaligned operations `by default.  I can imagine restricting this to 
some upper size bound but existing applications, regardless of how well you 
consider them to be written, must continue to work.
	Sam
    
    
More information about the freebsd-arch
mailing list