From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 20 04:48:50 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45256106566B; Sun, 20 Nov 2011 04:48:50 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 1E59D8FC0C; Sun, 20 Nov 2011 04:48:49 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id pAK4mmgV076400; Sun, 20 Nov 2011 04:48:48 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.119] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 6w52fsxhty6xyzchypaimezhe6; Sun, 20 Nov 2011 04:48:48 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=windows-1252 From: Tim Kientzle In-Reply-To: <20111118221011.GA99985@triton8.kn-bremen.de> Date: Sat, 19 Nov 2011 20:48:47 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <649708B5-9CB4-4AEB-9409-FD27224D0365@kientzle.com> References: <20111115202450.GA73512@freebsd.org> <20111116102239.GA2687@britannica.bec.de> <20111116131428.GA40723@freebsd.org> <20111116232152.GC21793@britannica.bec.de> <20111117002438.GA55931@freebsd.org> <201111172055.pAHKtZso061118@triton8.kn-bremen.de> <20111118221011.GA99985@triton8.kn-bremen.de> To: Juergen Lock X-Mailer: Apple Mail (2.1251.1) Cc: Alexander Best , freebsd-hackers@freebsd.org Subject: Re: easy way to determine if a stream or fd is seekable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2011 04:48:50 -0000 On Nov 18, 2011, at 2:10 PM, Juergen Lock wrote: > On Fri, Nov 18, 2011 at 12:00:07PM -0800, Tim Kientzle wrote: >>=20 >> On Nov 17, 2011, at 12:55 PM, Juergen Lock wrote: >>=20 >>>>=20 >>>> After a few experiments, bsdtar stopped using lseek() on >>>> FreeBSD for anything other than regular files and block >>>> devices. >>>=20 >>> Ah is that the reason why my patch never made it into FreeBSD 9? >>> =85. >>> Cheers, >>> Juergen (who would still like to see a faster "tar tfv = /dev/cd0"... :) >>=20 >> I would like to see that as well. >>=20 >> Take a look at=20 >>=20 >> = http://libarchive.googlecode.com/svn/trunk/libarchive/archive_read_open_fi= lename.c >>=20 >=20 > Ah so it's `just' a slow release cycle? >=20 > % grep DIOCGMEDIASIZE = /home/ncvs/src/lib/libarchive/archive_read_open_filename.c,v=20 > % >=20 > When will we see this code in FreeBSD? 10.0? 9.1? 8.3? :) Definitely in FreeBSD 10. Unfortunately libarchive 3.0 breaks the API and ABI, so it can't be imported into 9.1 or 8.3 wholesale. It should be possible to back port select pieces, though. Tim