mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lv: more exact check for merging origin
Merging origin has 'MERGE_LV' and should also have its merging snapshot.
This commit is contained in:
parent
9491ab41cd
commit
95e3dd5fb1
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.169 -
|
Version 2.02.169 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Checking LV for merging origin requires also it has merged snapshot.
|
||||||
Extend validation of metadata processing.
|
Extend validation of metadata processing.
|
||||||
Enable usage of cached volumes as snapshot origin LV.
|
Enable usage of cached volumes as snapshot origin LV.
|
||||||
Fix displayed lv name when splitting snapshot (2.02.146).
|
Fix displayed lv name when splitting snapshot (2.02.146).
|
||||||
|
@ -198,7 +198,7 @@
|
|||||||
#define lv_is_partial(lv) (((lv)->status & PARTIAL_LV) ? 1 : 0)
|
#define lv_is_partial(lv) (((lv)->status & PARTIAL_LV) ? 1 : 0)
|
||||||
#define lv_is_virtual(lv) (((lv)->status & VIRTUAL) ? 1 : 0)
|
#define lv_is_virtual(lv) (((lv)->status & VIRTUAL) ? 1 : 0)
|
||||||
#define lv_is_merging(lv) (((lv)->status & MERGING) ? 1 : 0)
|
#define lv_is_merging(lv) (((lv)->status & MERGING) ? 1 : 0)
|
||||||
#define lv_is_merging_origin(lv) (lv_is_merging(lv))
|
#define lv_is_merging_origin(lv) (lv_is_merging(lv) && (lv)->snapshot)
|
||||||
#define lv_is_snapshot(lv) (((lv)->status & SNAPSHOT) ? 1 : 0)
|
#define lv_is_snapshot(lv) (((lv)->status & SNAPSHOT) ? 1 : 0)
|
||||||
#define lv_is_converting(lv) (((lv)->status & CONVERTING) ? 1 : 0)
|
#define lv_is_converting(lv) (((lv)->status & CONVERTING) ? 1 : 0)
|
||||||
#define lv_is_external_origin(lv) (((lv)->external_count > 0) ? 1 : 0)
|
#define lv_is_external_origin(lv) (((lv)->external_count > 0) ? 1 : 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user