[PATCH] fadvise(2) system call

perryh at pluto.rain.com perryh at pluto.rain.com
Sat Nov 12 22:01:23 UTC 2011


Warner Losh <imp at bsdimp.com> wrote:
> On Nov 12, 2011, at 3:17 AM, perryh at pluto.rain.com wrote:
> > Peter Wemm <peter at wemm.org> wrote:
> >> On Fri, Nov 11, 2011 at 4:08 PM, Tim Kientzle <tim at kientzle.com>
> >> wrote:
> >>> ... seek(2) is badly broken on tape drives.
> >>> It does nothing and doesn't return an error ...
> >> 
> >> Honestly, I think we've got bigger problems to worry about
> >> than whether lseek() works on magnetic tape drives ...
> > 
> > True, but failing silently -- doing nothing but not returning an
> > error -- is a POLA violation.  Those are worth fixing simply on
> > principle.
>
> Early Unix layering made that kinda hard... :(

and yet, it somehow manages to return an error if applied to a pipe.
There must be some point at which the inode type affects the result.


More information about the freebsd-arch mailing list