From owner-freebsd-fs@FreeBSD.ORG Thu Sep 1 04:28:09 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED1FC106566C for ; Thu, 1 Sep 2011 04:28:09 +0000 (UTC) (envelope-from gnehzuil@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id C4EED8FC0C for ; Thu, 1 Sep 2011 04:28:09 +0000 (UTC) Received: by pzk33 with SMTP id 33so4155511pzk.18 for ; Wed, 31 Aug 2011 21:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=nITCqT0/1uMSUgYaLxJYIdC0+9gSuDfbU4Wu3IYFysU=; b=L8Ckmk8tYRRpV6Tc0BBOWTwxiw4wtREttpnGNBvczMo1k9UaSKOP2HyF+4SL2q4p52 ZV3w9w6CoominaI4ZUSSMddsvDR5aSa5SKlC1wNbOKMOU+vB7GyMNZ4XbCPwZFzH4Tw+ EyxoDUDy1WqMmdWvSNDACTdMAzqD6aLAJeI4o= Received: by 10.68.64.103 with SMTP id n7mr1513907pbs.303.1314849861994; Wed, 31 Aug 2011 21:04:21 -0700 (PDT) Received: from [10.32.101.195] ([182.92.247.2]) by mx.google.com with ESMTPS id m16sm310248wfd.0.2011.08.31.21.04.19 (version=SSLv3 cipher=OTHER); Wed, 31 Aug 2011 21:04:20 -0700 (PDT) Message-ID: <4E5F043F.2010303@gmail.com> Date: Thu, 01 Sep 2011 12:04:15 +0800 From: gnehzuil User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110627 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <1314806200.14687.YahooMailClassic@web113507.mail.gq1.yahoo.com> In-Reply-To: <1314806200.14687.YahooMailClassic@web113507.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: SEEK_DATA/SEEK_HOLE on UFS/EXT2FS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 04:28:10 -0000 Hi Pedro, Actually, in linux, it doesn't really support SEEK_DATA/SEEK_HOLE. The patches related don't be merged into mainline. At present, when lseek(2) is called with SEEK_DATA, the entire file is as data, as long as offset is smaller than the end of the file. Meanwhile, a virtual hole is at the end of the file. So lseek(2) is called with SEEK_HOLE, i_size in linux is returned. Best regards, lz On 08/31/2011 11:56 PM, Pedro F. Giffuni wrote: > Hi; > > Just FYI, after reconsidering their position wrt NIH, the > linux guys now think SEEK_DATA/SEEK_HOLE is wonderful: > > http://lwn.net/Articles/440255/ > > and NetBSD is known to be working on it too (latest patch): > > http://mail-index.netbsd.org/tech-kern/2011/08/17/msg011231.html > > I hope our own developers haven't forgotten that this > is indeed a desired feature and that we get it for 10.0 > or, if possible, 9.1. > > cheers, > > Pedro. > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"