gaps: fix LVM_VolGroup check on Disk
This commit is contained in:
parent
6e2ecfc497
commit
65ae5ab13c
|
@ -115,11 +115,7 @@ def find_disk_gaps_v2(device, info=None):
|
||||||
return v - v % info.part_align
|
return v - v % info.part_align
|
||||||
|
|
||||||
def maybe_add_gap(start, end, in_extended):
|
def maybe_add_gap(start, end, in_extended):
|
||||||
if in_extended:
|
if in_extended or primary_parts_remaining > 0:
|
||||||
usable = GapUsable.YES
|
|
||||||
elif isinstance(device, LVM_VolGroup):
|
|
||||||
usable = GapUsable.YES
|
|
||||||
elif primary_parts_remaining > 0:
|
|
||||||
usable = GapUsable.YES
|
usable = GapUsable.YES
|
||||||
else:
|
else:
|
||||||
usable = GapUsable.TOO_MANY_PRIMARY_PARTS
|
usable = GapUsable.TOO_MANY_PRIMARY_PARTS
|
||||||
|
|
Loading…
Reference in New Issue