From owner-freebsd-fs@freebsd.org Fri Sep 29 07:33:25 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D8B6E25E73 for ; Fri, 29 Sep 2017 07:33:25 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wr0-x241.google.com (mail-wr0-x241.google.com [IPv6:2a00:1450:400c:c0c::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A555981936 for ; Fri, 29 Sep 2017 07:33:24 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wr0-x241.google.com with SMTP id n64so534545wrb.2 for ; Fri, 29 Sep 2017 00:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=mjjF+ecIyrIXUrgdysWIULQDsIvkxntlzcFfqRkX9dc=; b=OPMKZxavYBruT4/PXgpB1VpqXNZOLgr9VWczzIH1pMGX/riLR4G3ag9ZLbo9PsvI/2 QDYAjl+YdNPscjS2ccKSatAiNqoG5v1jAv6JAVOhjqKHcEk7Hz6773D4ImT1btKR1N55 qm/QOIc1Ur5geeZCHEk4grihcLxsMDRv3ZXVvWCXgkRemW79tr4jDu7zMhpcOiQZjvff Qocqr6K4mT6UGZ9ZhwUHTUmRZkmhxU7ZJnhhS9/r1ButQGLioZqph50muak0OBGjn/if QK6eTSg3I4Yu4pQ4HpCxnFmkkIc9s/+vdClPGpxonLgv1F36NhQ3XQhTDZhel9+JsiX4 Dhfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=mjjF+ecIyrIXUrgdysWIULQDsIvkxntlzcFfqRkX9dc=; b=tSsbdHhxYjkYbBRzLqNsVXBUa4dCe9H2tvSBu8ScXAXjnfkweSkq+y6IRZQTtVpcE4 HxyhyKQxSYNlX0pHZNkw3ocwwAWmNfULV3ot7Bravsa5uJF9Q4MivWaX80412cR4NcEK whSX730SMrg+r7FBz4/QRMz+HB0pgG+qgYwnxklGeVaNuxWuOCK8FTX6juJoD7dfManF pxZLaRR3S380aYy7B+W0hX59JiNlFW02BhsLefLvsDmIW9LF8MV3qvm9LFObgPrWDHQh 6mAsgJAkVNWocH+zaU6MJS7OUEHT04Q1FCaGYuRrcsRwlpvOPogfnzD9mm+s5oCBLvbJ EjUg== X-Gm-Message-State: AHPjjUh6aPDKINIIyrM/kv/fgWywvU9IwJUe3e/cpuZFJ2kDSZm29b8Z CaixGyU0vo4TEhawVEWIZ2VThH7F X-Google-Smtp-Source: AOwi7QCXIQlIlLf5NFtl3Y1+7C2nKul+FqwjOvhmvoVTVHi0k/m+5RZ5hoSrhZcrv72zwfaD4ob2cQ== X-Received: by 10.223.135.53 with SMTP id a50mr7615150wra.229.1506670402930; Fri, 29 Sep 2017 00:33:22 -0700 (PDT) Received: from bens-mac.home (LFbn-MAR-1-445-220.w2-15.abo.wanadoo.fr. [2.15.38.220]) by smtp.gmail.com with ESMTPSA id m138sm3779538wmd.29.2017.09.29.00.33.22 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Sep 2017 00:33:22 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How to create holes in files ? From: Ben RUBSON In-Reply-To: <20170929072131.68594156E525@mail.bitblocks.com> Date: Fri, 29 Sep 2017 09:33:21 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <713DA316-D2DA-4F28-9879-C4278E122F5E@gmail.com> References: <44E32501-4213-4A09-992C-92DB4EF33C0C@gmail.com> <20170929072131.68594156E525@mail.bitblocks.com> To: Freebsd fs X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 07:33:25 -0000 > On 29 Sep 2017, at 09:21, Bakul Shah wrote: >=20 > On Thu, 28 Sep 2017 16:39:28 +0200 Ben RUBSON = wrote: > Ben RUBSON writes: >> Hi, >>=20 >> I'm trying to make holes in files in C. >> Goal is to deallocate huge files on ZFS while (randomly) reading = them. >>=20 >> The only thing I found is on Linux, fallocate(2) with = FALLOC_FL_PUNCH_HOLE. >>=20 >> What about FreeBSD ? >=20 > You can copy such a file using rsync with -S or --sparse > option or dd with conv=3Dsparse option. Unfortunately Bakul I would have liked to avoid copying data.