diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index e11ebcb51..416becab1 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.76 - =============================== + Add support for thin pool message release/reserve_metadata_snap. Add support for thin pool discard and external origin. 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. diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index 6eeaf8752..549a6355c 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -650,6 +650,8 @@ typedef enum { DM_THIN_MESSAGE_CREATE_THIN, /* device_id */ DM_THIN_MESSAGE_DELETE, /* device_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; int dm_tree_node_add_thin_pool_message(struct dm_tree_node *node, diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index a43b6a21c..acd82cacf 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -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.new_id); 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: r = -1; }