1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00
lvm2/lib/activate
Mike Snitzer a5ec3e3827 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>
2010-02-17 22:59:46 +00:00
..
activate.c Always query device by using uuid only and not name in clvmd. 2010-01-27 13:23:57 +00:00
activate.h Introduce percent_range_t and centralise snapshot full/mirror in-sync checks. 2009-10-01 00:35:29 +00:00
dev_manager.c Refactor snapshot-merge deptree and device removal to support info-by-uuid 2010-02-17 22:59:46 +00:00
dev_manager.h Change dev_manager_mirror_percent()'s 'struct logical_volume *' to be 2010-01-15 22:58:25 +00:00
fs.c Add support to disable udev checking: LVM_UDEV_DISABLE_CHECKING=1 env. var. 2010-01-11 15:40:03 +00:00
fs.h Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00
targets.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00