Date: Thu, 28 Sep 2017 17:34:28 +0100 From: Bob Eager <rde@tavi.co.uk> To: freebsd-fs@freebsd.org Subject: Re: How to create holes in files ? Message-ID: <20170928173428.42d1619c@raksha.tavi.co.uk> In-Reply-To: <20170928172609.0e6d5c77@fabiankeil.de> References: <44E32501-4213-4A09-992C-92DB4EF33C0C@gmail.com> <20170928172609.0e6d5c77@fabiankeil.de>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Thu, 28 Sep 2017 17:26:09 +0200 Fabian Keil <freebsd-listen@fabiankeil.de> wrote: > Ben RUBSON <ben.rubson@gmail.com> wrote: > > > I'm trying to make holes in files in C. > > Goal is to deallocate huge files on ZFS while (randomly) reading > > them. > > My interpretation of the above is that you want to create holes > without changing the file size and without affecting data that > is located before or after the holes that you want to create. > > Otherwise you could simply "deallocate" the content with > truncate(1). If he doesn't mind copying the files, dd(1) will do the job. However, I expect that doesn't meet his criteria. -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEVgdI2KeVldPAhUYaKBdf2az8e6gFAlnNJJQACgkQKBdf2az8 e6jwtQf/Wext9mpdighKYfsZVZ4mHUfDu8lPrb+CTc071kbASzS0bv36nVs6rvxZ 7J5jFP+EMA8xKA7WN2q1t8IZaiVVEZHoqp+NQojp13c0g7DtaKMHcCrZdesnYpQV z9u0WxpZcCm/f6H+TvO8wlnYAXvAntB0nIA5R6UPTyMXcGSnjfDkg02Tzq+AKJ0s ncXk4wXSRONMAnbCxHuY09v92rfciJv8VlvakGxFc20RzXqDuvKYsaFmk+gOuDBL PMddOyWKUUWOcTApuDsij7Yq7wA7E256uV+iI+ndU+F8tXsLu0tOmMSBwh4EFopa W9PaQvdzr6n9vHu2mxhZnVkNcUVyYw== =dNq0 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170928173428.42d1619c>
