1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: drop extra space from cache target line

Extra space between 'cache' target and metadata device caused
string comparation being not equal and thus always causing
table reload even when uneeded.
This commit is contained in:
Zdenek Kabelac 2015-11-23 23:12:43 +01:00
parent fe64d3a2e2
commit ddbf0075b1
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.112 - Version 1.02.112 -
===================================== =====================================
Drop extra space from cache target line to fix unneded table reloads.
Version 1.02.111 - 23rd November 2015 Version 1.02.111 - 23rd November 2015
===================================== =====================================

View File

@ -2429,7 +2429,7 @@ static int _cache_emit_segment_line(struct dm_task *dmt,
if (!_build_dev_string(origin, sizeof(origin), seg->origin)) if (!_build_dev_string(origin, sizeof(origin), seg->origin))
return_0; return_0;
EMIT_PARAMS(pos, " %s %s %s", metadata, data, origin); EMIT_PARAMS(pos, "%s %s %s", metadata, data, origin);
/* Data block size */ /* Data block size */
EMIT_PARAMS(pos, " %u", seg->data_block_size); EMIT_PARAMS(pos, " %u", seg->data_block_size);