Version 2.00.26 -
=====================================
+ Fix dm_name string size calculation.
Improve clvmd error reporting during startup.
Make clvmd cope with large gaps in node numbers IDs.
Make clvmd initialisation cope better with debugging output.
clvmd -V now displays lvm version too.
-
Version 2.00.25 - 29th September 2004
=====================================
char *build_dm_name(struct pool *mem, const char *vg,
const char *lv, const char *layer)
{
- size_t len = 0;
- int hyphens = 0;
+ size_t len = 1;
+ int hyphens = 1;
char *r, *out;
_count_hyphens(vg, &len, &hyphens);
_count_hyphens(lv, &len, &hyphens);
- if (layer && *layer)
+ if (layer && *layer) {
_count_hyphens(layer, &len, &hyphens);
+ hyphens++;
+ }
- len += hyphens + 2;
+ len += hyphens;
if (!(r = pool_alloc(mem, len))) {
stack;