public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* snapshot/subvol deletion
@ 2009-08-25 14:38 Yan, Zheng
  2009-08-25 15:03 ` Chris Mason
  0 siblings, 1 reply; 8+ messages in thread
From: Yan, Zheng @ 2009-08-25 14:38 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I will send a series patches that add snapshot/subvol deletion soon.
But the way to delete snapshot/subvol is far from people's expectancy.
To delete a snapshot/subvol, we need four steps: 1) snapshot/subvol
deletion ioctl or rmdir; 2) umount; 3) btrfsck; 4) mount the fs.

The reason for this is bug in root back & forward references. In simple
terms, the bug prevents us from knowing how many places a snapshot/subvol
is referenced. So it's unsafe delete corresponding fs tree immediately
after a link to snapshot/subvol is removed.

Regards
Yan, Zheng

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

end of thread, other threads:[~2009-08-27  3:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 14:38 snapshot/subvol deletion Yan, Zheng
2009-08-25 15:03 ` Chris Mason
2009-08-25 15:53   ` Josef Bacik
2009-08-25 16:04     ` Chris Mason
2009-08-27  3:47       ` Andy Lutomirski
2009-08-26  5:25   ` Yan, Zheng
2009-08-26  6:50     ` Chris Mason
2009-08-26  9:19       ` Yan, Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox