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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 27, 2018 at 05:56:53PM +0200, Amir Goldstein wrote:
> On Sat, Jan 27, 2018 at 1:28 PM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> > On Sat, Jan 27, 2018 at 10:34:25AM +0200, Amir Goldstein wrote:
> >> On Thu, Jan 25, 2018 at 7:51 AM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> >> >
> >> > 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....
> >
> [...]
> >
> >> 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@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux