master - lvmetad: fix lost bootloader area information
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=10e10cfa4fd802ffe404c0afb30ad896003c9437 Commit: 10e10cfa4fd802ffe404c0afb30ad896003c9437 Parent: 87e559f1eca6e3d2cc64d2b6401067ef2efa93ed Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Apr 9 14:42:40 2014 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Apr 9 14:53:45 2014 +0200
lvmetad: fix lost bootloader area information
The refactoring made by 732859d21f3b41bdb188f92b60f25d5c94dcee8a caused this. The former "ea" was not renamed to "ba" and we used incorrect tree node name to search for the value.
--- WHATS_NEW | 1 + lib/cache/lvmetad.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Fix lost information about bootloader area when using lvmetad. Don't require --major to be specified when using -My option on kernels > 2.4. Add configure --disable-thin_check_needs_check to support old thin_check. Use thin_check --clear-needs-check-flag by default.
lib/cache/lvmetad.c +1 -1
@@ -349,7 +349,7 @@ static struct lvmcache_info *_pv_populate_lvmcache(struct cmd_context *cmd, i =0 ; do { - sprintf(da_id, "ea%d", i); + sprintf(da_id, "ba%d", i); da = dm_config_find_node(cn->child, da_id); if (da) { if (!dm_config_get_uint64(da->child, "offset", &offset)) return_0;