Skip to contentSkip to conversation

master - dev_manager: extend setup_task

PATCH Zdenek Kabelac 1 participant 1 message Dec 5, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5163b8f697191caf13ae8192781f65b3f6335e74
Commit:        5163b8f697191caf13ae8192781f65b3f6335e74
Parent:        e2c7e0ad1196cc9323b63807ed199bcf4b10807c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Dec 1 14:56:32 2016 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Dec 5 17:11:49 2016 +0100

dev_manager: extend setup_task

Integrate also query for inactive table and
handle dm_task_run() and dm_task_get_info()
(thus switching to setup_task_run)

Add one exception case for DM_DEVICE_TARGET_MSG.

This allows further shortening and simplification of all other users of this function.

---
 WHATS_NEW                  |    1 +
 lib/activate/dev_manager.c |  185 ++++++++++++++++----------------------------
 2 files changed, 67 insertions(+), 119 deletions(-)
WHATS_NEW +1 -0
index df4c49e..eb64542 100644
@@ -1,5 +1,6 @@
 Version 2.02.169 - 
 =====================================
+  Better API for internal function _setup_task_run.
   Avoid using lv_has_target_type() call within lv_info_with_seg_status.
   Simplify internal lv_info_with_seg_status API.
   Decide which status is needed in one place for lv_info_with_seg_status.
lib/activate/dev_manager.c +66 -119

347 lines not on this page · raw message