1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/tools
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
..
.exported_symbols .export.sym generation 2004-03-26 14:51:23 +00:00
args.h Add --merge support to lvconvert to start merging a snapshot into its 2010-01-13 01:45:15 +00:00
cmdnames.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
commands.h Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
dmsetup.c Several changes in dmsetup and libdevmapper: 2010-02-15 16:21:33 +00:00
dumpconfig.c Tidy some uses of arg_count and introduce arg_is_set. 2009-11-03 15:50:42 +00:00
formats.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvchange.c . update documentation for --poll in the vgchange and lvchange man pages 2010-01-06 19:08:58 +00:00
lvconvert.c Refactor snapshot-merge deptree and device removal to support info-by-uuid 2010-02-17 22:59:46 +00:00
lvcreate.c Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
lvdisplay.c Rework the toollib interface (process_each_*) on top of new vg_read. 2009-07-01 17:00:50 +00:00
lvextend.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvm2cmd-static.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvm2cmd.c Fix mirror log name construction during lvconvert. (2.02.30) 2008-01-31 12:19:36 +00:00
lvm2cmd.h Fix log fn prototype. 2009-09-26 00:29:13 +00:00
lvm2cmdline.h Only allow one return from poll_daemon(). If a child polldaemon was 2010-01-11 19:19:17 +00:00
lvm-static.c Use tools.h in for lvm-static. 2009-01-20 20:37:41 +00:00
lvm.c #define an INTERNAL_ERROR macro and use it throughout LVM. 2009-12-16 19:22:11 +00:00
lvmchange.c Fix tools to report error when stopped by user. 2009-12-03 19:18:33 +00:00
lvmcmdlib.c Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
lvmcmdline.c Don't use LVM_UDEV_DISABLE_CHECKING environment variable anymore. 2010-02-15 16:26:48 +00:00
lvmdiskscan.c Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
lvreduce.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
lvremove.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
lvrename.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
lvresize.c Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
lvscan.c Introduce percent_range_t and centralise snapshot full/mirror in-sync checks. 2009-10-01 00:35:29 +00:00
Makefile.in more build fixes 2010-01-19 01:10:46 +00:00
polldaemon.c Default to checking LV's progress before waiting in _wait_for_single_lv. 2010-01-22 21:59:42 +00:00
polldaemon.h Default to checking LV's progress before waiting in _wait_for_single_lv. 2010-01-22 21:59:42 +00:00
pvchange.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
pvck.c Clean up numerous compiler warnings that crept in recently. 2007-08-22 14:38:18 +00:00
pvcreate.c Rename pvcreate_params processing functions to better match <object><action>. 2009-11-01 19:51:54 +00:00
pvdisplay.c Add missing vg_release to pvs and pvdisplay to fix memory leak. 2009-11-24 17:07:09 +00:00
pvmove.c Prepare for _get_lvconvert_vg() reuse as part of a larger lvconvert.c 2010-02-05 22:40:49 +00:00
pvremove.c Fix tools to report error when stopped by user. 2009-12-03 19:18:33 +00:00
pvresize.c Fix unlocking vg in some pvresize and toollib error paths. 2009-12-11 13:11:56 +00:00
pvscan.c Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
reporter.c Add missing vg_release to pvs and pvdisplay to fix memory leak. 2009-11-24 17:07:09 +00:00
segtypes.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
stub.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
toollib.c This is related to liblvm and its lvm_list_vg_names() and lvm_list_vg_uuids() functions 2010-02-03 14:08:39 +00:00
toollib.h Rename fill_vg_create_params to vgcreate_params_set_from_args. 2009-11-01 20:03:24 +00:00
tools.h Add %ORIGIN support to lv{create,extend,reduce,resize} --extents option 2010-02-03 03:58:08 +00:00
vgcfgbackup.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgcfgrestore.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
vgchange.c Rename segment and lv status flag from SNAPSHOT_MERGE to MERGING. 2010-01-13 01:56:18 +00:00
vgck.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgconvert.c Add --pvmetadatacopies as a synonym for --metadatacopies in various commands. 2009-10-05 20:55:56 +00:00
vgcreate.c Fix previous vgcreate commit to not call unpaired unlock. 2009-12-28 18:34:45 +00:00
vgdisplay.c Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages. 2009-10-26 14:37:09 +00:00
vgexport.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgextend.c Rename pvcreate_params processing functions to better match <object><action>. 2009-11-01 19:51:54 +00:00
vgimport.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgmerge.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
vgmknodes.c Add lots of missing stack debug messages to tools. 2009-09-14 22:47:49 +00:00
vgreduce.c Also clean up MISSING devices in --removemissing --force in vgreduce. 2009-12-17 13:54:46 +00:00
vgremove.c Allow vgremove of a VG with PVs missing. 2010-01-08 14:03:54 +00:00
vgrename.c This is related to liblvm and its lvm_list_vg_names() and lvm_list_vg_uuids() functions 2010-02-03 14:08:39 +00:00
vgscan.c Fix process_each_vg / _process_one_vg when vg_read() returns FAILED_LOCKING. 2009-09-15 01:38:59 +00:00
vgsplit.c Rename validate_vg_create_params to vgcreate_params_validate. 2009-11-01 20:05:17 +00:00