diff --git a/WHATS_NEW b/WHATS_NEW index 0213f27d8..7455f96a6 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.89 - ================================== + Allow empty strings for description and creation_host config fields. Issue deprecation warning when removing last lvm1-format snapshot. Reinstate support for snapshot removal with lvm1 format. (2.02.86) Add policy based automated repair of RAID logical volumes diff --git a/lib/format_text/import_vsn1.c b/lib/format_text/import_vsn1.c index a1c26dc0b..8ed012835 100644 --- a/lib/format_text/import_vsn1.c +++ b/lib/format_text/import_vsn1.c @@ -800,7 +800,7 @@ static void _read_desc(struct dm_pool *mem, int old_suppress; old_suppress = log_suppress(1); - d = dm_config_find_str(cft->root, "description", ""); + d = dm_config_find_str_allow_empty(cft->root, "description", ""); log_suppress(old_suppress); *desc = dm_pool_strdup(mem, d); @@ -819,7 +819,7 @@ static const char *_read_vgname(const struct format_type *fmt, old_suppress = log_suppress(2); *creation_host = dm_pool_strdup(mem, - dm_config_find_str(cft->root, + dm_config_find_str_allow_empty(cft->root, "creation_host", "")); log_suppress(old_suppress);