1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib
Mike Snitzer 6c1c02dc52 Change dev_manager_mirror_percent()'s 'struct logical_volume *' to be
'const'.  Be consistent with its use (and dev_manager_snapshot_percent()).

Pass 'lv' from dev_manager_snapshot_percent() to _percent() to
_percent_run().  _percent_run() always dereferenced 'lv' (when
initializing segh) even though it may have been NULL (as was the case
until now for dev_manager_snapshot_percent()).

If a "snapshot-origin" LV (snapshot-merge whose merge was deferred
becuase it was open) was passed to _percent_run() it would always return
100%.

Update _percent_run() to NOT return PERCENT_100 et. al. if
->target_percent() wasn't ever called and supplied 'lv' is a merging
origin.  A default return of 100% does not work for snapshot-merge.

Also tweak a related lvconvert log_error() to include "Aborting merge."
2010-01-15 22:58:25 +00:00
..
activate Change dev_manager_mirror_percent()'s 'struct logical_volume *' to be 2010-01-15 22:58:25 +00:00
cache remove errant comment fragment 2010-01-11 19:12:25 +00:00
commands Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00
config Add activation/udev_rules config option in lvm.conf. 2010-01-07 19:54:21 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Fix pvcreate on a partition (regressed in 2.02.51). 2009-08-19 15:34:33 +00:00
display Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Use fixed buffer to prevent stack overflow in persistent filter dump. 2010-01-06 13:25:36 +00:00
format1 Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
format_pool Cleanup returns for void functions. 2009-12-11 13:16:37 +00:00
format_text Rename segment and lv status flag from SNAPSHOT_MERGE to MERGING. 2010-01-13 01:56:18 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Fix clvmd automatic target module loading crash. 2010-01-13 17:40:17 +00:00
log Use _LOG_FATAL when aborting on an internal error. 2010-01-11 20:41:39 +00:00
metadata Improve target type compatibility checking in _percent_run(). 2010-01-15 16:35:26 +00:00
mirror Use macro outsize() with check for error return value. 2010-01-07 14:46:51 +00:00
misc Add support to disable udev checking: LVM_UDEV_DISABLE_CHECKING=1 env. var. 2010-01-11 15:40:03 +00:00
mm #define an INTERNAL_ERROR macro and use it throughout LVM. 2009-12-16 19:22:11 +00:00
report Add snapshot merge wrappers to abstract the associations and flags used 2010-01-13 01:55:43 +00:00
snapshot Detect case of both merging_store and cow_store supplied in 2010-01-15 17:46:08 +00:00
striped Use macro outsize() with check for error return value. 2010-01-07 14:46:51 +00:00
unknown Fix the "const discarded" warnings introduced in the unknown segment patch. 2009-10-22 10:38:07 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00