Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2012 18:45:36 -0700
From:      Xin Li <delphij@delphij.net>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-hackers@freebsd.org, d@delphij.net
Subject:   Re: BIO_DELETE equivalent for file on FFS filesystem
Message-ID:  <4FD94240.6060806@delphij.net>
In-Reply-To: <alpine.BSF.2.00.1205261704590.70782@wojtek.tensor.gdynia.pl>
References:  <alpine.BSF.2.00.1205261704590.70782@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/26/12 08:06, Wojciech Puchar wrote:
> is it possible. suppose i have 1GB file with my data and 100 1
> megabyte parts of it is no longer needed. i could reorganize that
> file to take 900MB or... can i call some system function to "punch"
> holes?

I think you can only truncate the file at this time, pretty much like
brk() works for memory.

Cheers,
- -- 
Xin LI <delphij@delphij.net>	https://www.delphij.net/
FreeBSD - The Power to Serve!		Live free or die


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBCAAGBQJP2UJAAAoJEG80Jeu8UPuzvaMH/Rb0IwPZV1xyapMoSv71FQPz
0yhAMLamNBEIRf2mvBZHp9ASLBRDYZsDtU+EAFelS56hBkuYywSb//m+cTeQpqT3
Wz5713DRtrpi6X7KrGCFmtpzhCiYyS11YLBGWIe6PjBFNdF+dveNGh5TPy4bKmVy
j4cx+a3mHEdXOinayUzfPI1wpxF1eI/6cIiP0G5wy0VAApbk5qgE4PVlqZa8zKFF
4sePD6vsYTQ+3PVMwkfeJiX8E1ZMKAo/boD8Hw3jU24kY5n4bC+Qcqvm/JCFArGr
QfA0K+TZ7R86lfs7yyjhmnf3fSBZVTOG4anYOAeOqgghORL43JhGjKZcDRw2CjM=
=Y8H3
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD94240.6060806>