1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2015-07-10 13:51:15 +02:00
parent beb65056cf
commit a7101e7bfb
2 changed files with 2 additions and 3 deletions

View File

@ -237,8 +237,7 @@ int check_lv_segments(struct logical_volume *lv, int complete_vg)
inc_error_count;
}
if (seg_is_pool(seg) &&
!validate_pool_chunk_size(lv->vg->cmd, seg->segtype, seg->chunk_size)) {
if (!validate_pool_chunk_size(lv->vg->cmd, seg->segtype, seg->chunk_size)) {
log_error("LV %s: %s segment %u has invalid chunk size %u.",
lv->name, seg->segtype->name, seg_count, seg->chunk_size);
inc_error_count;

View File

@ -587,7 +587,7 @@ static int _read_cache_params(struct cmd_context *cmd,
}
static int _read_activation_params(struct cmd_context *cmd,
struct volume_group *vg,
struct volume_group *vg,
struct lvcreate_params *lp)
{
unsigned pagesize = lvm_getpagesize() >> SECTOR_SHIFT;