From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: mtk.manpages@gmail.com, linux-fsdevel@vger.kernel.org,
linux-api@vger.kernel.org, linux-xfs@vger.kernel.org,
linux-btrfs@vger.kernel.org, linux-man@vger.kernel.org
Subject: Re: [PATCH 1/2] man2/fallocate.2: document behavior with shared blocks
Date: Tue, 18 Oct 2016 08:06:10 +0200 [thread overview]
Message-ID: <d4886eaf-3b80-ca55-012f-e5d06d87b8a5@gmail.com> (raw)
In-Reply-To: <147675566778.12400.16090171199161180354.stgit@birch.djwong.org>
Hi Darrick,
On 10/18/2016 03:54 AM, Darrick J. Wong wrote:
> Add a blurb to the fallocate manpage explaining that the fallocate
> command with the UNSHARE mode flag may use CoW to unshare blocks to
> guarantee that a disk write won't fail with ENOSPC.
Thanks! Applied.
Cheers,
Michael
>
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
> man2/fallocate.2 | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
>
> diff --git a/man2/fallocate.2 b/man2/fallocate.2
> index 54d6340..3ed1460 100644
> --- a/man2/fallocate.2
> +++ b/man2/fallocate.2
> @@ -79,6 +79,16 @@ but the file size will not be changed even if
> is greater than the file size.
> Preallocating zeroed blocks beyond the end of the file in this manner
> is useful for optimizing append workloads.
> +
> +If the
> +.B FALLOC_FL_UNSHARE
> +flag is specified in
> +.IR mode ,
> +shared file data extents will be made private to the file to guarantee
> +that a subsequent write will not fail due to lack of space.
> +Typically, this will be done by performing a copy-on-write operation on
> +all shared data in the file.
> +This flag may not be supported by all filesystems.
> .PP
> Because allocation is done in block size chunks,
> .BR fallocate ()
>
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
prev parent reply other threads:[~2016-10-18 6:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-18 1:54 [PATCH 1/2] man2/fallocate.2: document behavior with shared blocks Darrick J. Wong
2016-10-18 1:54 ` [PATCH 2/2] man2/ioctl_fideduperange.2: clarify operation some more Darrick J. Wong
2016-10-18 6:11 ` Michael Kerrisk (man-pages)
2016-10-18 6:06 ` Michael Kerrisk (man-pages) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4886eaf-3b80-ca55-012f-e5d06d87b8a5@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=darrick.wong@oracle.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).