All of lore.kernel.org
 help / color / mirror / Atom feed
* committing new snapshots
@ 2009-12-07 22:25 Sage Weil
  2009-12-08 16:05 ` Josef Bacik
  0 siblings, 1 reply; 4+ messages in thread
From: Sage Weil @ 2009-12-07 22:25 UTC (permalink / raw)
  To: linux-btrfs

When you create a new snap or subvol, first a new ROOT_ITEM is created 
while everything commits, and then the referring directory entry is set up 
(with a correspond ROOT_BACKREF).  

First, if you say 'btrfsctl -s foo .' and then 'reboot -f -n' before the 
next regularly scheduled commit, the snap is created, but lost.. there's 
no reference.  Second, the unreferenced ROOT_ITEM is never cleaned up.

Are there any existing plans for this?  It would be nice if the reference 
could be committed as well the first time around.  That probably requires 
a bit of futzing to determine what the root objectid is going to be 
beforehand, then adding the link in the namespace, then flushing things 
out and updating the root item in the right order?

sage

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-08 17:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 22:25 committing new snapshots Sage Weil
2009-12-08 16:05 ` Josef Bacik
2009-12-08 16:14   ` Andrey Kuzmin
2009-12-08 17:03   ` Sage Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.