1
0
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:
Zdenek Kabelac 2011-12-21 12:49:00 +00:00
parent 99a150fc26
commit 61158adbcf
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);