Thread (11 messages) 11 messages, 5 authors, 2021-08-23

Re: [RFD] XFS: Subvolumes and snapshots....

From: Dave Chinner <david@fromorbit.com>
Date: 2018-01-28 01:56:33

On Sat, Jan 27, 2018 at 05:56:53PM +0200, Amir Goldstein wrote:
On Sat, Jan 27, 2018 at 1:28 PM, Dave Chinner [off-list ref] wrote:
quoted
On Sat, Jan 27, 2018 at 10:34:25AM +0200, Amir Goldstein wrote:
quoted
On Thu, Jan 25, 2018 at 7:51 AM, Dave Chinner [off-list ref] wrote:
quoted
The video from my talk at LCA 2018 yesterday about the XFS subvolume and
snapshot support I'm working on has been uploaded and can be found
here:

https://www.youtube.com/watch?v=wG8FUvSGROw

I don't have the code in a reviewable form yet - there's still quite
a bit of work before I get to that point, but this is a good
introduction to how all the pieces will fit together....
Very cool!

Got any paper napkin design photo to share?
No. I have some arch docs I wrote after the initial Poc on loopback
devices and a bunch of bash, sed, awk and xfs_io hacks....
[...]
quoted
quoted
I suppose all subvolumes use the host fs journal?
No. A subvolume is a "fully functioning filesystem" and so - by
definition - they each have their own internal journal. The journal
IO remapping and COW functionality all works as seen in that demo...
So is FUA from subvolume going to be handled the same as with loop
(fsync of entire image file) or more efficiently? for example by flushing
only dirty pages that are already mapped?
FUA from the subvoume is mapped directly to the nuderlying device,
just like all other IO. i.e. we never need to "fsync" the underlying
file. We only need to make sure the underlying extent map for the
subvolume is flushed when necessary. This is exactly the same
constraint as the PNFS file layout offload case, handled by the
->commit_metadata() export operation. (i.e
xfs_fs_nfs_commit_metadata()).

(I did mention in the talk that the pNFS model was instructive in
the talk, because it already handles issues like this.... :)

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help