linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Preparing for XFS reflink D-day
@ 2016-12-10  8:04 Amir Goldstein
  2016-12-10 19:42 ` Darrick J. Wong
  2016-12-12  1:59 ` Dave Chinner
  0 siblings, 2 replies; 11+ messages in thread
From: Amir Goldstein @ 2016-12-10  8:04 UTC (permalink / raw)
  To: Dave Chinner; +Cc: Darrick J. Wong, linux-xfs

Dave,

I would like to have some system's storage pre-formatted
with rmapbt and reflink support without allowing reflink until
the day comes where the feature is declared stable.

I realize that rmapbt/reflink features are declared unstable and
bugs could certainly be lurking without doing any reflinks at all.
However, I estimate the the class of bugs introduces by heavily
reflinked file systems is going to take more time to tame.

Considering these options for said systems:
1. kernel v4.8.y or v4.9.y and mkfs.xfs -m rmapbt=1
2. kernel v4.9.y and mkfs.xfs -m rmapbt=1
3. kernel v4.9.y and mkfs.xfs -m rmapbt=1,reflink=1
    and new mount option -onoreflink
4. kernel v4.9.y and mkfs.xfs -m rmapbt=1,reflinkbt=1
    (separate rocomapt features reflinkbt from reflink)

Options 1-2 would require adding support in xfs_admin to
enable reflink on an existing fs (by cloning the bmbt).

Option 3 would require adding a simple noreflink
mount option to disable reflink related ops.

Option 4 requires changing mkfs.xfs before 4.9 release
and possibly setting recompat feature reflink on first file
reflink. There are several precedents to this sort of  "set
on first use" feature in ext4, not sure if there are any in xfs.

The benefit of having this functionality is that others,
like me, could provide more testing for the refcount<=1
use case. I myself intend to test refcount>1 as well, but
the goal of getting recount<=1 ready for production is
higher priority.

Another benefit from option #4 is that you may be able
to declare rmapbt=1,reflinkbt=1 stable and/or default
mkfs options prior to declaring reflink=1 stable.

Which, if any, of the options above would you be willing
to endorse?

Darrick,

I seem to recall you taking about enabling reflink on existing
fs sometime before, but I could not find that reference.
I suppose you had an idea of how this should be done?

Amir.


* D-Day of course stands for Darrick's-day ;-)

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

end of thread, other threads:[~2016-12-13  0:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10  8:04 [RFC] Preparing for XFS reflink D-day Amir Goldstein
2016-12-10 19:42 ` Darrick J. Wong
2016-12-11  8:38   ` Amir Goldstein
2016-12-11 18:27     ` Darrick J. Wong
2016-12-11 19:23       ` Amir Goldstein
2016-12-12  2:45         ` Dave Chinner
2016-12-12  1:59 ` Dave Chinner
2016-12-12  5:06   ` Amir Goldstein
2016-12-12  7:44     ` Dave Chinner
2016-12-12  8:10       ` Amir Goldstein
2016-12-13  0:56         ` Dave Chinner

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).