mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Unlike 'mirror' segtype, 'raid1' should perform flush on suspend.
The 'mirror' segtype and 'raid1' segtype both set the 'MIRRORED' flag. However, due to differences in the way these device-mapper targets behave 'mirror' must be suspended with the 'noflush' option and 'raid1' does not have to be. This patch ensures that when the 'MIRRORED' flag is checked to see if 'noflush' is needed that it does not also set it for 'raid1' by mistake.
This commit is contained in:
parent
1a53400723
commit
c62f9f0b2f
@ -1,5 +1,6 @@
|
||||
Version 2.02.96 -
|
||||
================================
|
||||
Unlike 'mirror' segtype, 'raid1' should perform flush on suspend.
|
||||
Add udev info and context to lvmdump.
|
||||
Fix RAID device replacement code so that it works under snapshot.
|
||||
Fix inability to split RAID1 image while specifying a particular PV.
|
||||
|
@ -2178,7 +2178,8 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv,
|
||||
break;
|
||||
case SUSPEND:
|
||||
dm_tree_skip_lockfs(root);
|
||||
if (!dm->flush_required && (lv->status & MIRRORED) && !(lv->status & PVMOVE))
|
||||
if (!dm->flush_required && !seg_is_raid(first_seg(lv)) &&
|
||||
(lv->status & MIRRORED) && !(lv->status & PVMOVE))
|
||||
dm_tree_use_no_flush_suspend(root);
|
||||
/* Fall through */
|
||||
case SUSPEND_WITH_LOCKFS:
|
||||
|
Loading…
Reference in New Issue
Block a user