linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fallocate.2: clarify the zeroing behavior
@ 2013-11-06 13:52 Christoph Hellwig
       [not found] ` <20131106135231.GA3882-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2013-11-06 13:52 UTC (permalink / raw)
  To: linux-man, linux-fsdevel

Fallocate only zeroes space that did not previously contain data,
but leaves existing data untouched.

Signed-off-by: Christoph Hellwig <hch@lst.de>

diff --git a/man2/fallocate.2 b/man2/fallocate.2
index f5c395d..f577ba8 100644
--- a/man2/fallocate.2
+++ b/man2/fallocate.2
@@ -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,

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fallocate.2: clarify the zeroing behavior
       [not found] ` <20131106135231.GA3882-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
@ 2013-11-07 17:03   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-11-07 17:03 UTC (permalink / raw)
  To: Christoph Hellwig, linux-man-u79uwXL29TY76Z2rM5mHXA,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

On 11/07/13 02:52, Christoph Hellwig wrote:
> Fallocate only zeroes space that did not previously contain data,
> but leaves existing data untouched.

Thanks, Christoph. APplied

Cheers

Michael


> Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org>
> 
> diff --git a/man2/fallocate.2 b/man2/fallocate.2
> index f5c395d..f577ba8 100644
> --- a/man2/fallocate.2
> +++ b/man2/fallocate.2
> @@ -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,
> --
> To unsubscribe from this list: send the line "unsubscribe linux-man" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-07 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 13:52 [PATCH] fallocate.2: clarify the zeroing behavior Christoph Hellwig
     [not found] ` <20131106135231.GA3882-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2013-11-07 17:03   ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).