From: "Darrick J. Wong" <darrick.wong-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
To: Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/2] man2: document FICLONE and FICLONERANGE
Date: Thu, 28 Jan 2016 11:18:14 -0800 [thread overview]
Message-ID: <20160128191814.GA5849@birch.djwong.org> (raw)
In-Reply-To: <20160128133329.GA7610-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
On Thu, Jan 28, 2016 at 05:33:29AM -0800, Christoph Hellwig wrote:
> Now that we have this in 4.5-rc1 let's get this into man-pages as well.
>
> > --- /dev/null
> > +++ b/man2/ioctl_ficlone.2
>
> think this should be a link to the clone range man page, and the
> both ioctls should be documented together. Basically just document
> FICLONERANGE and then mentiond that FICLONE does a whole file clone.
Ok, that's an easy switch to make.
> > +.B #include <sys/ioctl.h>
>
> Don't we need uapi/linux/fs.h as well?
Err... yes. :)
> > Not all filesystems support
> > +overlapping reflink ranges in the same file.
>
> Which one doesn't?
At the moment, neither btrfs nor XFS support it.
I don't think it'd be difficult for XFS (make a copy of the extent mappings in
the source area, increase the refcounts of those blocks, do the usual
punch-and-remap, then delete & decrement that copy of the mappings) but that
can come later.
> Also there should be a sentence that the clones are atomic vs
> concurrent writes, so no locks need to be taken for a consistent
> snapshot.
<nod>
I've updated the manpages and will repush the patchset ... optimistically,
when XFS reflink RFCv5 comes out, but sooner if anyone requests it. :)
Thank you for the review!
--D
> --
> To unsubscribe from this list: send the line "unsubscribe linux-api" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
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
next prev parent reply other threads:[~2016-01-28 19:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-19 8:56 [RFCv4 0/2] man-pages: document reflink/dedupe ioctls Darrick J. Wong
2015-12-19 8:56 ` [PATCH 1/2] man2: document FICLONE and FICLONERANGE Darrick J. Wong
[not found] ` <20151219085613.12660.75735.stgit-PTl6brltDGh4DFYR7WNSRA@public.gmane.org>
2016-01-28 13:33 ` Christoph Hellwig
[not found] ` <20160128133329.GA7610-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2016-01-28 19:18 ` Darrick J. Wong [this message]
[not found] ` <20160128191814.GA5849-PTl6brltDGh4DFYR7WNSRA@public.gmane.org>
2016-03-15 8:27 ` Christoph Hellwig
[not found] ` <20160315082737.GA1498-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2016-03-15 16:35 ` Darrick J. Wong
[not found] ` <20151219085607.12660.75196.stgit-PTl6brltDGh4DFYR7WNSRA@public.gmane.org>
2015-12-19 8:56 ` [PATCH 2/2] man2: document the FIDEDUPERANGE ioctl Darrick J. Wong
-- strict thread matches above, loose matches on Subject: below --
2016-03-15 16:48 [PATCH v5 0/2] man-pages: document reflink/dedupe ioctls Darrick J. Wong
[not found] ` <20160315164804.30909.83270.stgit-PTl6brltDGh4DFYR7WNSRA@public.gmane.org>
2016-03-15 16:48 ` [PATCH 1/2] man2: document FICLONE and FICLONERANGE Darrick J. Wong
[not found] ` <20160315164810.30909.3152.stgit-PTl6brltDGh4DFYR7WNSRA@public.gmane.org>
2016-03-19 17:04 ` walter harms
[not found] ` <56ED86B6.2000506-fPG8STNUNVg@public.gmane.org>
2016-03-20 19:13 ` Darrick J. Wong
2016-06-08 10:35 ` Michael Kerrisk (man-pages)
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=20160128191814.GA5849@birch.djwong.org \
--to=darrick.wong-qhclzuegtsvqt0dzr+alfa@public.gmane.org \
--cc=hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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).