Re: [PATCH] cowlinks v2

Jamie Lokier
2004-04-03T00:49:57Z

Chris Friesen wrote:
> Could you not change it back to a normal inode when refcount becomes 1?

You can only do that if the cowid object has a pointer to the last
remaining reference to it. That's possible, but more complicated and
would incur a little more I/O per cow operation.

> Or if you didn't want to do that always (say if you knew there would
> be more references being created soon) you could at least have some kind
> of cleanup tool that you could manually run on a filesystem to clean it up?

fsck could do it. It's not a big deal though: simply looking up the
inode through the last remaining path can also clean it up. Until
them, it's very little space used: the same as a short symlink.

-- Jamie