mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Use macro outsize() with check for error return value.
This commit is contained in:
parent
b3975f5098
commit
ba99186951
@ -149,8 +149,8 @@ static int _mirrored_text_export(const struct lv_segment *seg, struct formatter
|
||||
{
|
||||
outf(f, "mirror_count = %u", seg->area_count);
|
||||
if (seg->status & PVMOVE)
|
||||
out_size(f, (uint64_t) seg->extents_copied * seg->lv->vg->extent_size,
|
||||
"extents_moved = %" PRIu32, seg->extents_copied);
|
||||
outsize(f, (uint64_t) seg->extents_copied * seg->lv->vg->extent_size,
|
||||
"extents_moved = %" PRIu32, seg->extents_copied);
|
||||
if (seg->log_lv)
|
||||
outf(f, "mirror_log = \"%s\"", seg->log_lv->name);
|
||||
if (seg->region_size)
|
||||
|
@ -98,8 +98,8 @@ static int _striped_text_export(const struct lv_segment *seg, struct formatter *
|
||||
(seg->area_count == 1) ? "\t# linear" : "");
|
||||
|
||||
if (seg->area_count > 1)
|
||||
out_size(f, (uint64_t) seg->stripe_size,
|
||||
"stripe_size = %u", seg->stripe_size);
|
||||
outsize(f, (uint64_t) seg->stripe_size,
|
||||
"stripe_size = %u", seg->stripe_size);
|
||||
|
||||
return out_areas(f, seg, "stripe");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user