Skip to contentSkip to conversation

master - libdm-config: Implement dm_config_flatten.

PATCH Petr Rockai 1 participant 1 message Nov 20, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=274a7a68b80fdce9e9398ffbe45e788b13b04642
Commit:        274a7a68b80fdce9e9398ffbe45e788b13b04642
Parent:        956c19284195f3200a1370166bd8847e5d159588
Author:        Petr Rockai <[email protected]>
AuthorDate:    Wed Nov 19 18:37:31 2014 +0100
Committer:     Petr Rockai <[email protected]>
CommitterDate: Thu Nov 20 16:51:06 2014 +0100

libdm-config: Implement dm_config_flatten.

---
 libdm/libdevmapper.h |    5 ++++
 libdm/libdm-config.c |   53 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+), 0 deletions(-)
libdm/libdevmapper.h +5 -0
index 6e237c0..3400c28 100644
@@ -1848,6 +1848,11 @@ struct dm_config_tree *dm_config_insert_cascaded_tree(struct dm_config_tree *fir
  */
 struct dm_config_tree *dm_config_remove_cascaded_tree(struct dm_config_tree *cft);
 
+/*
+ * Create a new, uncascaded config tree equivalent to the input cascade.
+ */
+struct dm_config_tree *dm_config_flatten(struct dm_config_tree *cft);
+
 void dm_config_destroy(struct dm_config_tree *cft);
 
 /* Simple output line by line. */
libdm/libdm-config.c +53 -0

56 lines not on this page · raw message