summaryrefslogtreecommitdiff
path: root/lib/striped
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-07-16 23:57:43 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2014-07-17 16:17:44 +0200
commitcac0722cacaac06ac1211194f1d6c21572a32998 (patch)
tree9dc2d54468e0bf08f1e34dab81da9c68cc782463 /lib/striped
parentf5d6c4b0f3527b42ff3e7ef7a68010c3540d6f41 (diff)
downloadlvm2-cac0722cacaac06ac1211194f1d6c21572a32998.tar.gz
metadata: use outfc for comments
Few unecessary comments were written to on-disc metadata. Use outfc() to have comments only in archived files. (may also save couple bytes in ringbuffer). TODO: needed validation against newline char...
Diffstat (limited to 'lib/striped')
-rw-r--r--lib/striped/striped.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/striped/striped.c b/lib/striped/striped.c
index 3b0846780..dfd45181f 100644
--- a/lib/striped/striped.c
+++ b/lib/striped/striped.c
@@ -94,8 +94,8 @@ static int _striped_text_import(struct lv_segment *seg, const struct dm_config_n
static int _striped_text_export(const struct lv_segment *seg, struct formatter *f)
{
- outf(f, "stripe_count = %u%s", seg->area_count,
- (seg->area_count == 1) ? "\t# linear" : "");
+ outfc(f, (seg->area_count == 1) ? "# linear" : NULL,
+ "stripe_count = %u", seg->area_count);
if (seg->area_count > 1)
outsize(f, (uint64_t) seg->stripe_size,