]> 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)
commita5ec3e3827b9b35da222575349a6a1be99958e14
tree33fe8853a843bd968c32a05eb43f7ff1eb60638c
parent943c443426ce063177d5a4973155e7f072d3b12f
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.035825 seconds and 5 git commands to generate.