From owner-freebsd-fs@FreeBSD.ORG Fri Mar 4 21:12:52 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 8B9231065674 for ; Fri, 4 Mar 2011 21:12:52 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id 38BA48FC12 for ; Fri, 4 Mar 2011 21:12:51 +0000 (UTC) Received: by people.fsn.hu (Postfix, from userid 1001) id 30AC3750ECE; Fri, 4 Mar 2011 22:12:50 +0100 (CET) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000050, version=1.2.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 15.4187] X-CRM114-CacheID: sfid-20110304_22124_5FADEC3C X-CRM114-Status: Good ( pR: 15.4187 ) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Fri Mar 4 22:12:50 2011 X-DSPAM-Confidence: 0.8513 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4d7155d2710527667723524 X-DSPAM-Factors: 27, From*Attila Nagy , 0.00010, wrote+>, 0.00209, >+>, 0.00262, >+>, 0.00262, References*mail.gmail.com>, 0.00310, wrote, 0.00443, >+Is, 0.00458, In-Reply-To*mail.gmail.com>, 0.00471, files+with, 0.00500, files, 0.00741, rewriting, 0.00913, Adam, 0.00913, Subject*files, 0.01000, >+Well, 0.01000, to+rewrite, 0.01000, Date*49+0100, 0.99000, 05+39, 0.01000, rewrite, 0.01000, References*fsn.hu>, 0.01000, To*gmail.com>, 0.01273, User-Agent*i686, 0.01363, PM, 0.01497, User-Agent*i686+en, 0.01631, User-Agent*Linux+i686, 0.01631, obvious, 0.01809, is+obvious, 0.01809, X-Spambayes-Classification: ham; 0.01 Message-ID: <4D7155D1.6000600@fsn.hu> Date: Fri, 04 Mar 2011 22:12:49 +0100 From: Attila Nagy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Adam Vande More References: <4D710154.90409@fsn.hu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: Punching holes into (sparse) files - porting Solaris fcntl(F_FREESP) to FreeBSD? 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: Fri, 04 Mar 2011 21:12:52 -0000 On 03/04/2011 05:39 PM, Adam Vande More wrote: > > > Is it possible to make regions of files, with already written data > sparse? (I'm interested to do this on ZFS) > > > > Well thereis sysutils/phantom Thanks, but I don't want to rewrite the file. I thought that this is obvious from the other part of the e-mail, sorry. So I would like to make existing, non-sparse regions sparse, without rewriting the file. This is what F_FREESP is for.