mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
libdm: support reserve and release metadata snap msg
Add support for new message types for thinp target 1.1
This commit is contained in:
parent
dcd4afc716
commit
c4db22bd4f
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.76 -
|
Version 1.02.76 -
|
||||||
===============================
|
===============================
|
||||||
|
Add support for thin pool message release/reserve_metadata_snap.
|
||||||
Add support for thin pool discard and external origin.
|
Add support for thin pool discard and external origin.
|
||||||
Add configure --enable-udev-rule-exec-detection to detect exec path in rules.
|
Add configure --enable-udev-rule-exec-detection to detect exec path in rules.
|
||||||
Use sbindir in udev rules by default and remove executable path detection.
|
Use sbindir in udev rules by default and remove executable path detection.
|
||||||
|
@ -650,6 +650,8 @@ typedef enum {
|
|||||||
DM_THIN_MESSAGE_CREATE_THIN, /* device_id */
|
DM_THIN_MESSAGE_CREATE_THIN, /* device_id */
|
||||||
DM_THIN_MESSAGE_DELETE, /* device_id */
|
DM_THIN_MESSAGE_DELETE, /* device_id */
|
||||||
DM_THIN_MESSAGE_SET_TRANSACTION_ID, /* current_id, new_id */
|
DM_THIN_MESSAGE_SET_TRANSACTION_ID, /* current_id, new_id */
|
||||||
|
DM_THIN_MESSAGE_RESERVE_METADATA_SNAP, /* 1.1 */
|
||||||
|
DM_THIN_MESSAGE_RELEASE_METADATA_SNAP, /* 1.1 */
|
||||||
} dm_thin_message_t;
|
} dm_thin_message_t;
|
||||||
|
|
||||||
int dm_tree_node_add_thin_pool_message(struct dm_tree_node *node,
|
int dm_tree_node_add_thin_pool_message(struct dm_tree_node *node,
|
||||||
|
@ -1411,6 +1411,12 @@ static int _thin_pool_node_message(struct dm_tree_node *dnode, struct thin_messa
|
|||||||
m->u.m_set_transaction_id.current_id,
|
m->u.m_set_transaction_id.current_id,
|
||||||
m->u.m_set_transaction_id.new_id);
|
m->u.m_set_transaction_id.new_id);
|
||||||
break;
|
break;
|
||||||
|
case DM_THIN_MESSAGE_RESERVE_METADATA_SNAP: /* 1.1 */
|
||||||
|
r = dm_snprintf(buf, sizeof(buf), "reserve_metadata_snap");
|
||||||
|
break;
|
||||||
|
case DM_THIN_MESSAGE_RELEASE_METADATA_SNAP: /* 1.1 */
|
||||||
|
r = dm_snprintf(buf, sizeof(buf), "release_metadata_snap");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
r = -1;
|
r = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user