1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

unknown: add_target_line is not needed

Leave addition of unknown segment to table as internal error.
Do not replace unknown segment with error device.
This commit is contained in:
Zdenek Kabelac 2014-04-29 23:38:08 +02:00
parent 1756bf6c63
commit b56aef1915

View File

@ -53,20 +53,6 @@ static int _unknown_text_export(const struct lv_segment *seg, struct formatter *
return out_config_node(f, cn);
}
#ifdef DEVMAPPER_SUPPORT
static int _unknown_add_target_line(struct dev_manager *dm __attribute__((unused)),
struct dm_pool *mem __attribute__((unused)),
struct cmd_context *cmd __attribute__((unused)),
void **target_state __attribute__((unused)),
struct lv_segment *seg __attribute__((unused)),
const struct lv_activate_opts *laopts __attribute__((unused)),
struct dm_tree_node *node, uint64_t len,
uint32_t *pvmove_mirror_count __attribute__((unused)))
{
return dm_tree_node_add_error_target(node, len);
}
#endif
static void _unknown_destroy(struct segment_type *segtype)
{
dm_free(segtype);
@ -76,9 +62,6 @@ static struct segtype_handler _unknown_ops = {
.name = _unknown_name,
.text_import = _unknown_text_import,
.text_export = _unknown_text_export,
#ifdef DEVMAPPER_SUPPORT
.add_target_line = _unknown_add_target_line,
#endif
.destroy = _unknown_destroy,
};