1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-05 13:18:20 +03:00
lvm2/lib/activate
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.c Add snapshot merge wrappers to abstract the associations and flags used 2010-01-13 01:55:43 +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 Change dev_manager_mirror_percent()'s 'struct logical_volume *' to be 2010-01-15 22:58:25 +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