WHATS_NEW_DM | 4 ++++ libdm/libdm-targets.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 8b304e6..fb92416 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,3 +1,7 @@ +Version 1.02.147 - +===================================== + Parsing mirror status accepts 'userspace' keyword in status. + Version 1.02.146 - 18th December 2017 ===================================== Activation tree of thin pool skips duplicated check of pool status. diff --git a/libdm/libdm-targets.c b/libdm/libdm-targets.c index 990d275..8766789 100644 --- a/libdm/libdm-targets.c +++ b/libdm/libdm-targets.c @@ -508,6 +508,11 @@ int dm_get_status_mirror(struct dm_pool *mem, const char *params, if (!(pos = _skip_fields(pos, argc))) goto_out; + if (strncmp(pos, "userspace", 9) == 0) { + pos += 9; + /* FIXME: support status of userspace mirror implementation */ + } + if (sscanf(pos, "%u %n", &argc, &used) != 1) goto_out; pos += used;