mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Allow empty strings for description and creation_host config fields
This commit is contained in:
parent
99a150fc26
commit
61158adbcf
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.89 -
|
Version 2.02.89 -
|
||||||
==================================
|
==================================
|
||||||
|
Allow empty strings for description and creation_host config fields.
|
||||||
Issue deprecation warning when removing last lvm1-format snapshot.
|
Issue deprecation warning when removing last lvm1-format snapshot.
|
||||||
Reinstate support for snapshot removal with lvm1 format. (2.02.86)
|
Reinstate support for snapshot removal with lvm1 format. (2.02.86)
|
||||||
Add policy based automated repair of RAID logical volumes
|
Add policy based automated repair of RAID logical volumes
|
||||||
|
@ -800,7 +800,7 @@ static void _read_desc(struct dm_pool *mem,
|
|||||||
int old_suppress;
|
int old_suppress;
|
||||||
|
|
||||||
old_suppress = log_suppress(1);
|
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);
|
log_suppress(old_suppress);
|
||||||
*desc = dm_pool_strdup(mem, d);
|
*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);
|
old_suppress = log_suppress(2);
|
||||||
*creation_host = dm_pool_strdup(mem,
|
*creation_host = dm_pool_strdup(mem,
|
||||||
dm_config_find_str(cft->root,
|
dm_config_find_str_allow_empty(cft->root,
|
||||||
"creation_host", ""));
|
"creation_host", ""));
|
||||||
log_suppress(old_suppress);
|
log_suppress(old_suppress);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user