tweak _Device.available for existing partitions
This commit is contained in:
parent
9ef3ce19a1
commit
6fb185647b
|
@ -533,6 +533,7 @@ class _Device(_Formattable, ABC):
|
|||
if self._fs is not None:
|
||||
return self._fs._available()
|
||||
if self.free_for_partitions > 0:
|
||||
if not self._has_preexisting_partition():
|
||||
return True
|
||||
for p in self._partitions:
|
||||
if p.available():
|
||||
|
|
Loading…
Reference in New Issue