]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
fallocate.2: Clarify the zeroing behavior
authorChristoph Hellwig <hch@infradead.org>
Wed, 6 Nov 2013 13:52:31 +0000 (05:52 -0800)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 7 Nov 2013 17:43:39 +0000 (06:43 +1300)
fallocate() zeroes only space that did not previously contain
data, but leaves existing data untouched.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/fallocate.2

index f5c395dc12fc25ebfc1766ae963f3e0f10bdc0d7..f577ba849284d8a07675a4761bc09991b2872c29 100644 (file)
@@ -44,8 +44,7 @@ The default operation (i.e.,
 .I mode
 is zero) of
 .BR fallocate ()
-allocates and initializes to zero the disk space
-within the range specified by
+allocates the disk space within the range specified by
 .I offset
 and
 .IR len .
@@ -54,6 +53,11 @@ The file size (as reported by
 will be changed if
 .IR offset + len
 is greater than the file size.
+Any subregion withing the range specified by
+.I offset
+and
+.IR len .
+that did not contain data before the call will be initialized to zero.
 This default behavior closely resembles the behavior of the
 .BR posix_fallocate (3)
 library function,