Date: Sat, 12 Nov 2011 20:57:03 -0800 From: perryh@pluto.rain.com To: imp@bsdimp.com Cc: tim@kientzle.com, freebsd-arch@freebsd.org Subject: Re: [PATCH] fadvise(2) system call Message-ID: <4ebf4e1f.hkNuKvwPEzh2GJhi%perryh@pluto.rain.com> In-Reply-To: <AF86B2D1-6337-4FFD-BE20-BBA3A26BCD52@bsdimp.com> References: <201110281426.00013.jhb@freebsd.org> <4EB2C9DD.9090606@FreeBSD.org> <20111104160319.GD6110@elvis.mu.org> <201111080800.32717.jhb@freebsd.org> <CAGE5yCoTvYNXNc37V0%2Bt783uh=6J-_J-dt_Km_4xbO7O2O2BUw@mail.gmail.com> <6E287E90-AA62-4776-A09D-394D69C9494F@kientzle.com> <1B4CA8AC-8798-40CD-9379-FA0F379558DE@bsdimp.com> <4698F60B-CBF7-4D80-9368-CC6FBD893C0B@kientzle.com> <CAGE5yCp1OKeTFLgKDttJcAZ0Q_j9UsuJ=%2BLBzCmOruFDkQ%2BSnQ@mail.gmail.com> <4ebe47ce.gGq91QcdXBP300Km%perryh@pluto.rain.com> <AF86B2D1-6337-4FFD-BE20-BBA3A26BCD52@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh <imp@bsdimp.com> wrote: > On Nov 12, 2011, at 3:17 AM, perryh@pluto.rain.com wrote: > > Peter Wemm <peter@wemm.org> wrote: > >> On Fri, Nov 11, 2011 at 4:08 PM, Tim Kientzle <tim@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ebf4e1f.hkNuKvwPEzh2GJhi%perryh>