From owner-freebsd-arch@FreeBSD.ORG Sat Nov 12 22:01:23 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70DB3106564A for ; Sat, 12 Nov 2011 22:01:23 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 499A48FC15 for ; Sat, 12 Nov 2011 22:01:23 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id pACM1HBo005035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 12 Nov 2011 14:01:17 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id pACM1GMf005034; Sat, 12 Nov 2011 14:01:16 -0800 (PST) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA24427; Sat, 12 Nov 11 13:57:15 PST Date: Sat, 12 Nov 2011 20:57:03 -0800 From: perryh@pluto.rain.com To: imp@bsdimp.com Message-Id: <4ebf4e1f.hkNuKvwPEzh2GJhi%perryh@pluto.rain.com> References: <201110281426.00013.jhb@freebsd.org> <4EB2C9DD.9090606@FreeBSD.org> <20111104160319.GD6110@elvis.mu.org> <201111080800.32717.jhb@freebsd.org> <6E287E90-AA62-4776-A09D-394D69C9494F@kientzle.com> <1B4CA8AC-8798-40CD-9379-FA0F379558DE@bsdimp.com> <4698F60B-CBF7-4D80-9368-CC6FBD893C0B@kientzle.com> <4ebe47ce.gGq91QcdXBP300Km%perryh@pluto.rain.com> In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: tim@kientzle.com, freebsd-arch@freebsd.org Subject: Re: [PATCH] fadvise(2) system call X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Nov 2011 22:01:23 -0000 Warner Losh wrote: > On Nov 12, 2011, at 3:17 AM, perryh@pluto.rain.com wrote: > > Peter Wemm wrote: > >> On Fri, Nov 11, 2011 at 4:08 PM, Tim Kientzle > >> 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.