2009-03-10 16:20:28

by Aaron Straus

[permalink] [raw]
Subject: Re: Unable to create the previously deleted snapshot or subvolume

Hi Siddhartha,

On Mar 10 02:42 PM, Siddhartha Swaroop wrote:
> So from about test case the problem I faced is when ever I try to
> create a snapshot or subvolume of same name which previously deleted
> it says file exists.But when I do "$ ls " that file will not be
> present in that directory. But once in a while am able to create it
> as u can see in the about test steps 7,8,9.

Thanks. That patch is certainly dangerous and meant more as a request
for help! :)

That said, the most important thing I still don't understand is the tree
root forward and back refs.

In particular I don't think BTRFS is adding all the forward and back
refs in the snapshot of snapshot case.

The will make snapshot deletion difficult because one cannot tell if the
tree root is still being referenced by another tree root (or not)...

Anyway, I think that's still the first thing to be cleaned up.

Regards,
=a=




--
===================
Aaron Straus
[email protected]