mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: reset delay flag for devs used by thin
Patch clears the flag if thin pool is stacked over mirror. Since thin pool could be used to stack device over mirrors, it needs resume properly i.e. mirrors with corelog which are otherwise unconditionally skipped (for pvmove functionality).
This commit is contained in:
parent
21c401006c
commit
1946a45329
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.77 -
|
Version 1.02.77 -
|
||||||
=================================
|
=================================
|
||||||
|
Always reset delay_resume_if_new flag when stacking thin pool.
|
||||||
Don't create value for dm_config_node and require dm_config_create_value call.
|
Don't create value for dm_config_node and require dm_config_create_value call.
|
||||||
Check for existing new_name for dmsetup rename.
|
Check for existing new_name for dmsetup rename.
|
||||||
Fix memory leak in dmsetup _get_split_name() error path.
|
Fix memory leak in dmsetup _get_split_name() error path.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2005-2011 Red Hat, Inc. All rights reserved.
|
* Copyright (C) 2005-2012 Red Hat, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* This file is part of the device-mapper userspace tools.
|
* This file is part of the device-mapper userspace tools.
|
||||||
*
|
*
|
||||||
@ -3107,6 +3107,10 @@ int dm_tree_node_add_thin_pool_target(struct dm_tree_node *node,
|
|||||||
if (!_link_tree_nodes(node, seg->pool))
|
if (!_link_tree_nodes(node, seg->pool))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
/* Clean flag delay_resume_if_new - so corelog gets resumed */
|
||||||
|
seg->metadata->props.delay_resume_if_new = 0;
|
||||||
|
seg->pool->props.delay_resume_if_new = 0;
|
||||||
|
|
||||||
node->props.send_messages = 1;
|
node->props.send_messages = 1;
|
||||||
seg->transaction_id = transaction_id;
|
seg->transaction_id = transaction_id;
|
||||||
seg->low_water_mark = low_water_mark;
|
seg->low_water_mark = low_water_mark;
|
||||||
|
Loading…
Reference in New Issue
Block a user