Re: snapshot/subvol deletion

Andy Lutomirski
2009-08-27T03:47:25Z

Chris Mason wrote:
>
> ;) The problem is the directory entry for the snapshot, but its a little
> more complex. Lets say subvolA has a directory entry for snapshotZ, and
> then someone wanders in and snapshots subvolA, creating snapshotA'.
>
> This means that both subvolA and snashotA' have a directory entry for
> snapshotZ. If we delete snapshotZ we have to deal with both directory
> entries.

I would've expected that, if we delete snapshotZ by IOCTL / rmdir /
whatever from within snapshotA', then it still exists until it's also
deleted from (the original) subvolA. But maybe I just don't get it.

Is there some end-user-oriented documentation on what the semantics of
snapshots and subvolumes are supposed to be? I couldn't find it with a
bit of Googling and wiki reading.

--Andy