diff --git a/WHATS_NEW b/WHATS_NEW index 82222d7de..541e3ecfe 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.169 - ===================================== + Implement compatible target function for stripe segment. Use status info to report merge failed and snapshot invalid lvs fields. Version 2.02.168 - 30th November 2016 diff --git a/lib/striped/striped.c b/lib/striped/striped.c index 7d19786e5..e1de9c990 100644 --- a/lib/striped/striped.c +++ b/lib/striped/striped.c @@ -159,6 +159,11 @@ static int _striped_merge_segments(struct lv_segment *seg1, struct lv_segment *s } #ifdef DEVMAPPER_SUPPORT +static int _striped_target_status_compatible(const char *type) +{ + return (strcmp(type, TARGET_NAME_LINEAR) == 0); +} + static int _striped_add_target_line(struct dev_manager *dm, struct dm_pool *mem __attribute__((unused)), struct cmd_context *cmd __attribute__((unused)), @@ -218,6 +223,7 @@ static struct segtype_handler _striped_ops = { .text_export = _striped_text_export, .merge_segments = _striped_merge_segments, #ifdef DEVMAPPER_SUPPORT + .target_status_compatible = _striped_target_status_compatible, .add_target_line = _striped_add_target_line, .target_present = _striped_target_present, #endif