]> sourceware.org Git - lvm2.git/commit
Refactor snapshot-merge deptree and device removal to support info-by-uuid
authorMike Snitzer <snitzer@redhat.com>
Wed, 17 Feb 2010 22:59:46 +0000 (22:59 +0000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Feb 2010 22:59:46 +0000 (22:59 +0000)
commiteaef92b02f9688562794ef9519942945829a273a
tree33fe8853a843bd968c32a05eb43f7ff1eb60638c
parent4982eabe07370e65f3c24c591e5e406b0701a0b2
Refactor snapshot-merge deptree and device removal to support info-by-uuid

Add a merging snapshot to the deptree, using the "error" target, rather
than avoid adding it entirely.  This allows proper cleanup of the -cow
device without having to rename the -cow to use the origin's name as a
prefix.

Move the preloading of the origin LV, after a merge, from
lv_remove_single() to vg_remove_snapshot().  Having vg_remove_snapshot()
preload the origin allows the -cow device to be released so that it can
be removed via deactivate_lv().  lv_remove_single()'s deactivate_lv()
reliably removes the -cow device because the associated snapshot LV,
that is to be removed when a snapshot-merge completes, is always added
to the deptree (and kernel -- via "error" target).

Now when the snapshot LV is removed both the -cow and -real devices
get removed using uuid rather than device name.  This paves the way
for us to switch over to info-by-uuid queries.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
WHATS_NEW
lib/activate/dev_manager.c
lib/metadata/lv_manip.c
lib/metadata/snapshot_manip.c
tools/lvconvert.c
This page took 0.039682 seconds and 5 git commands to generate.