mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: drop duplicated seg test
Test is already in seg_is_pool() if branch. and one minor indent fix.
This commit is contained in:
parent
beb65056cf
commit
a7101e7bfb
@ -237,8 +237,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg)
|
|||||||
inc_error_count;
|
inc_error_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seg_is_pool(seg) &&
|
if (!validate_pool_chunk_size(lv->vg->cmd, seg->segtype, seg->chunk_size)) {
|
||||||
!validate_pool_chunk_size(lv->vg->cmd, seg->segtype, seg->chunk_size)) {
|
|
||||||
log_error("LV %s: %s segment %u has invalid chunk size %u.",
|
log_error("LV %s: %s segment %u has invalid chunk size %u.",
|
||||||
lv->name, seg->segtype->name, seg_count, seg->chunk_size);
|
lv->name, seg->segtype->name, seg_count, seg->chunk_size);
|
||||||
inc_error_count;
|
inc_error_count;
|
||||||
|
Loading…
Reference in New Issue
Block a user