Quoting Darren J Moffat <darr...@opensolaris.org>:

On 11/06/2010 10:59, Henu wrote:
Quoting Darren J Moffat <darr...@opensolaris.org>:

On 11/06/2010 09:47, Henu wrote:
In another thread recursive snapshot creation was found atomic so that
it is done quickly, and more important, all at once or nothing at all.

Do you know if recursive destroying and renaming of snapshots are atomic
too?

I don't believe they are guaranteed to be atomic, but neither is the
creation. It is one call from userland to kernel but that doesn't make
it atomic from a ZFS transaction view point.

--
Darren J Moffat


But the following document says "Recursive ZFS snapshots are created
quickly as one atomic operation. The snapshots are created together (all
at once) or not created at all."
http://docs.sun.com/app/docs/doc/819-5461/gdfdt?a=view

I've looked at the code again - I miss read part of it - it does appear to be an "all or nothing" both for the create and destroy.

--
Darren J Moffat


Excellent!

I'm sorry I keep bothering you, but did you checked what the code says about recursive rename? Is it atomic too?

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to