From owner-freebsd-fs@freebsd.org Thu Sep 28 14:39:33 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 A86DBE335EC for ; Thu, 28 Sep 2017 14:39:33 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 3D2DE1AC3 for ; Thu, 28 Sep 2017 14:39:33 +0000 (UTC) (envelope-from ben.rubson@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id m127so2748348wmm.1 for ; Thu, 28 Sep 2017 07:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:subject:message-id:date:to :mime-version; bh=YoGRGYUGsSnRz9A+M4wMjy4dFO9kXNrOi4U/uHb2Et0=; b=QyPKotWf8sAATjdxnqUuPVptBRlsB3lPn9OJg3tZincyZwyL6D8nbDqldjGfG3LG8G Hy8swasGQ74cYkZSgKRpDgJoLP0r07kC8O2JFq20zyd09RF/jJS5owX7etDfGJECi6Hd KEEE68VXlmrJjNtZ1lzzq1qOYg536ZytRH8vVHiJTQH/0rM+Zgszlo6rpYd5lYZTTWNs fAvif+tR0RAHjtqzOsVcNLptgBohp9hHda+qLan0bbg9H6rMRqd3vfdENIgZxenobqgx j6r9W+YP4Evu8d8kbWHi/M8e6EuVMN47FVNZOjoLCto4aHBUexI9s2q5bwHtXD1YCr2U DUog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=YoGRGYUGsSnRz9A+M4wMjy4dFO9kXNrOi4U/uHb2Et0=; b=e5l4CaMTGfcEY+HhuutndQ7ObkZHNmlsRzUFeLbyxGpqkHSrQDeeNdUhxhDokI39ws 1wDx1k14ALSjl1gcu0cROocq7gK8bIXSQz331RCAZbBgTFYBxnYuJe94WlwrzmLe8MOu DoyRfrotVqy1KWEYp2eQFSS2DR7j5mr8j8S7izLx8AU4gHDawu08CT1j/ZS/rcNBelbP VNU5qU5LUfkIkMdjMbv7SwGwqAEXolk8ecxJz6wdtYSncumbxAN9joc/PrfFuJw2whwn yNIaebmX3zXGe4EKS8KBvv3K5dCdi3hOuSpQ1E6Ccd4jOWqqkf+zA+dFDoPi07GHsIQo 4YLw== X-Gm-Message-State: AHPjjUjlImkE++Q0dT3hKdIjN32RlFHIAHTcAF3jwHGVFjCiTgnRM8nb 0qJJv+G08HTfCT6I8A/hH9koHhXC X-Google-Smtp-Source: AOwi7QCj286H0Vsigk/5q6jZpXBc75OLr49bpwksMIR5RQ6tDH/IzA0x/Ar0OhEWbkml9Rah0gzFeg== X-Received: by 10.28.21.205 with SMTP id 196mr1386335wmv.77.1506609571338; Thu, 28 Sep 2017 07:39:31 -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 f140sm1184220wmd.12.2017.09.28.07.39.30 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Sep 2017 07:39:30 -0700 (PDT) From: Ben RUBSON Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: How to create holes in files ? Message-Id: <44E32501-4213-4A09-992C-92DB4EF33C0C@gmail.com> Date: Thu, 28 Sep 2017 16:39:28 +0200 To: Freebsd fs Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) 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: Thu, 28 Sep 2017 14:39:33 -0000 Hi, I'm trying to make holes in files in C. Goal is to deallocate huge files on ZFS while (randomly) reading them. The only thing I found is on Linux, fallocate(2) with FALLOC_FL_PUNCH_HOLE. What about FreeBSD ? Thank you very much ! Ben