]> sourceware.org Git - lvm2.git/commit
Add 'fail_if_percent_unsupported' arg to _percent() and _percent_run().
authorMike Snitzer <snitzer@redhat.com>
Wed, 10 Feb 2010 14:38:24 +0000 (14:38 +0000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 10 Feb 2010 14:38:24 +0000 (14:38 +0000)
commit6c39b8f4f064da2c5bf8d8e1da392a1cd72c8c2c
tree062a3a9710e0b15646716ead64b98956719b2d9d
parent4a9af3552733028029c3e048e95b47da495c1f39
Add 'fail_if_percent_unsupported' arg to _percent() and _percent_run().

We unfortunately don't yet _know_, in dev_manager_snapshot_percent(), if
a snapshot-merge target is active (activation is deferred if dev is
open); so we can't short-circuit origin devices based purely on existing
LVM LV attributes.

Set 'fail_if_percent_unsupported' in dev_manager_snapshot_percent() for
a merging origin LV, otherwise passing unsupported LV types to _percent
will lead to a default successful return with percent_range as
PERCENT_100.

For a merging origin, PERCENT_100 will result in a polldaemon that runs
infinitely (because completion is PERCENT_0).
lib/activate/dev_manager.c
This page took 0.03496 seconds and 5 git commands to generate.