LVM2/libdm libdevmapper.h libdm-deptree.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-10-17 14:16:25
Modified files:
libdm : libdevmapper.h libdm-deptree.c
Log message:
Add thin_pool dm message support
Experimental support for kernel message via resume sequence.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdevmapper.h.diff?cvsroot=lvm2&r1=1.160&r2=1.161
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.127&r2=1.128
libdm/libdevmapper.h +36 -0
@@ -555,6 +555,42 @@uint64_t low_water_mark_size, unsigned skip_block_zeroing); +/* Supported messages for thin provision target */ +typedef enum { +DM_THIN_MESSAGE_CREATE_SNAP , +DM_THIN_MESSAGE_CREATE_THIN , +DM_THIN_MESSAGE_DELETE , +DM_THIN_MESSAGE_SET_TRANSACTION_ID , +DM_THIN_MESSAGE_TRIM +}dm_thin_message_t ; + +struct dm_thin_message { +dm_thin_message_t type; +union { +struct { +uint32_t device_id; +uint32_t origin_id; + } m_create_snap; +struct { +uint32_t device_id; + } m_create_thin; +struct { +uint32_t device_id; + } m_delete; +struct { +uint64_t current_id; +uint64_t new_id; + } m_set_transaction_id; +struct { +uint32_t device_id; +uint64_t new_size; + } m_trim; + } u; +}; + +int dm_tree_node_add_thin_pool_message (struct dm_tree_node *node, +struct dm_thin_message *message); + int dm_tree_node_add_thin_target(struct dm_tree_node *node, uint64_t size, const char *thin_pool_uuid,
libdm/libdm-deptree.c +216 -18
290 lines not on this page · raw message