mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Sync filesystem for thin snapshots
Add missing lockfs option when suspend origin, before thin volume snapshot is created
This commit is contained in:
parent
2955f13ecc
commit
2f99e5e35a
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.97 -
|
Version 2.02.97 -
|
||||||
===============================
|
===============================
|
||||||
|
Fix missing sync of filesystem when creating thin volume snapshot.
|
||||||
|
|
||||||
Version 2.02.96 - 8th June 2012
|
Version 2.02.96 - 8th June 2012
|
||||||
===============================
|
===============================
|
||||||
|
@ -1518,6 +1518,9 @@ static int _lv_suspend(struct cmd_context *cmd, const char *lvid_s,
|
|||||||
(lv_is_origin(lv_pre) || lv_is_cow(lv_pre)))
|
(lv_is_origin(lv_pre) || lv_is_cow(lv_pre)))
|
||||||
lockfs = 1;
|
lockfs = 1;
|
||||||
|
|
||||||
|
if (laopts->origin_only && lv_is_thin_volume(lv) && lv_is_thin_volume(lv_pre))
|
||||||
|
lockfs = 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Suspending an LV directly above a PVMOVE LV also
|
* Suspending an LV directly above a PVMOVE LV also
|
||||||
* suspends other LVs using that same PVMOVE LV.
|
* suspends other LVs using that same PVMOVE LV.
|
||||||
@ -1597,7 +1600,7 @@ static int _lv_resume(struct cmd_context *cmd, const char *lvid_s,
|
|||||||
if (lv_is_thin_pool(lv) && laopts->origin_only)
|
if (lv_is_thin_pool(lv) && laopts->origin_only)
|
||||||
messages_only = 1;
|
messages_only = 1;
|
||||||
|
|
||||||
if (!lv_is_origin(lv))
|
if (!lv_is_origin(lv) && !lv_is_thin_volume(lv))
|
||||||
laopts->origin_only = 0;
|
laopts->origin_only = 0;
|
||||||
|
|
||||||
if (test_mode()) {
|
if (test_mode()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user