Date: Fri, 29 Sep 2017 09:33:21 +0200 From: Ben RUBSON <ben.rubson@gmail.com> To: Freebsd fs <freebsd-fs@freebsd.org> Subject: Re: How to create holes in files ? Message-ID: <713DA316-D2DA-4F28-9879-C4278E122F5E@gmail.com> In-Reply-To: <20170929072131.68594156E525@mail.bitblocks.com> References: <44E32501-4213-4A09-992C-92DB4EF33C0C@gmail.com> <20170929072131.68594156E525@mail.bitblocks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 29 Sep 2017, at 09:21, Bakul Shah <bakul@bitblocks.com> wrote: >=20 > On Thu, 28 Sep 2017 16:39:28 +0200 Ben RUBSON <ben.rubson@gmail.com> = 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?713DA316-D2DA-4F28-9879-C4278E122F5E>