lvm fallback done

This commit is contained in:
brent s
2019-11-08 05:19:28 -05:00
parent b633b22f59
commit 083c966cad
3 changed files with 306 additions and 34 deletions

View File

@@ -42,10 +42,10 @@ class Member(object):
def _parseDeviceBlock(self):
# I can't believe the mdstat module doesn't really have a way to do this.
super = subprocess.run(['mdadm', '--examine', self.devpath],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE)
if super.returncode != 0:
_super = subprocess.run(['mdadm', '--examine', self.devpath],
stdout = subprocess.PIPE,
stderr = subprocess.PIPE)
if _super.returncode != 0:
# TODO: logging?
self.is_superblocked = False
self.superblock = None