refs #1594 fix a bug
parent
ad404f9982
commit
45cfe25222
|
@ -842,7 +842,7 @@ def ogGetPartitionSize (disk, par):
|
|||
sz = subprocess.run (['partx', '-gbo', 'SIZE', PART], capture_output=True, text=True).stdout.strip()
|
||||
if sz: return int (int (sz) / 1024)
|
||||
|
||||
sz = subprocess.run (['lvs', '--noheadings', '-o', 'lv_size', '--units', 'k', PART], capture_output=True, text=True).stdout.strip
|
||||
sz = subprocess.run (['lvs', '--noheadings', '-o', 'lv_size', '--units', 'k', PART], capture_output=True, text=True).stdout.strip()
|
||||
if sz: return int (sz)
|
||||
|
||||
return FileSystemLib.ogGetFsSize (disk, par)
|
||||
|
|
Loading…
Reference in New Issue