[Btrfs-devel] transaction ioctls

Sage Weil sage at newdream.net
Tue Apr 22 13:52:53 PDT 2008


On Tue, 22 Apr 2008, Chris Mason wrote:
> Ok, really though, I seem to remember that ceph needed to do file + xattr 
> operations in one atomic shot, were there others?

The transactions generally look like

 write(a)
 setxattr(a)
 write(b)
 setxattr(b)

It _could_ be broken down into write intent, do X, log X, such that the 
atomicity isn't strictly necessary, but itd be so much nicer to just wrap 
things up into tidy transactions.

sage



More information about the Btrfs-devel mailing list