Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mount.snapshot: mount previous snapshot with upperdir
Instead of stacking 2 last snapshots as 2 lower layers, use current snapshot as lower and previous layer as upper layer. This is needed for previous snapshot to follow merge directory into current snapshot through rename/delete in snapshot mount. Old snapshots must be mounted after activation of new snapshot, because the new "last" snapshot needs to use the "last" upper and the upper holds the in-use exclusive lock bit until the new snapshot is activated. Signed-off-by: Amir Goldstein <[email protected]>
- Loading branch information