[Btrfs-devel] transaction ioctls

Evgeniy Polyakov johnpol at 2ka.mipt.ru
Tue Apr 22 14:05:15 PDT 2008


Hi.

On Tue, Apr 22, 2008 at 04:55:37PM -0400, Chris Mason (chris.mason at oracle.com) wrote:
> > The transactions generally look like
> >
> >  write(a)
> >  setxattr(a)
> >  write(b)
> >  setxattr(b)
> 
> Hmm, is this whole thing the atomic unit, or can a and b be done separately?

No, main idea is to bind very different operations together and make
them look atomic from userspace point of view. But transactions are
nothing without ability to correctly unroll them on demand.
Transaction can include any operation with data and metadata.

-- 
	Evgeniy Polyakov



More information about the Btrfs-devel mailing list