diff options
author | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2011-08-30 14:55:15 +0000 |
commit | e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1 (patch) | |
tree | 197a579049ddab74d8944939a45f8e0d46b6c3cf /lib/unknown | |
parent | d35188058be01bd29128dcf1f5b79220fbcb135b (diff) | |
download | lvm2-e59e2f7c3c1e2fa170dfca2ee0c29cca2d4f55c1.tar.gz |
Move the core of the lib/config/config.c functionality into libdevmapper,
leaving behind the LVM-specific parts of the code (convenience wrappers that
handle `struct device` and `struct cmd_context`, basically). A number of
functions have been renamed (in addition to getting a dm_ prefix) -- namely,
all of the config interface now has a dm_config_ prefix.
Diffstat (limited to 'lib/unknown')
-rw-r--r-- | lib/unknown/unknown.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/unknown/unknown.c b/lib/unknown/unknown.c index 105da98b9..de449bfe0 100644 --- a/lib/unknown/unknown.c +++ b/lib/unknown/unknown.c @@ -32,17 +32,17 @@ static const char *_unknown_name(const struct lv_segment *seg) return seg->segtype->name; } -static int _unknown_text_import(struct lv_segment *seg, const struct config_node *sn, +static int _unknown_text_import(struct lv_segment *seg, const struct dm_config_node *sn, struct dm_hash_table *pv_hash) { - struct config_node *new, *last = NULL, *head = NULL; - const struct config_node *current; + struct dm_config_node *new, *last = NULL, *head = NULL; + const struct dm_config_node *current; log_verbose("importing unknown segment"); for (current = sn; current != NULL; current = current->sib) { if (!strcmp(current->key, "type") || !strcmp(current->key, "start_extent") || !strcmp(current->key, "tags") || !strcmp(current->key, "extent_count")) continue; - new = clone_config_node_with_mem(seg->lv->vg->vgmem, current, 0); + new = dm_config_clone_node_with_mem(seg->lv->vg->vgmem, current, 0); if (!new) return_0; if (last) @@ -57,7 +57,7 @@ static int _unknown_text_import(struct lv_segment *seg, const struct config_node static int _unknown_text_export(const struct lv_segment *seg, struct formatter *f) { - struct config_node *cn = seg->segtype_private; + struct dm_config_node *cn = seg->segtype_private; return out_config_node(f, cn); } |