On Tue, 2006-12-26 at 14:01 +0300, Victor Latushkin wrote:

> What happens if fatal failure occurs after the txg which frees blocks 
> have been written but before before txg doing bleaching will be 
> started/completed?

clearly you'd need to store the "unbleached" list persistently in the
pool.

transactions which freed blocks (by punching holes in the allocation
space map) would instead or additionally move them to the unbleached
list; a separate bleaching task queue would pick blocks off the
unbleached list, bleach them; only once bleaching was complete would
they be removed from the unbleached list.

In the face of a crash, some blocks might get bleached twice.

                                                - Bill





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

Reply via email to