modified: ri_data.py
if device is a raid(md0), the raid device doesn't add Number eg :
md0 + "1"=md01 is error.
This commit is contained in:
@@ -114,7 +114,7 @@ class Partition:
|
||||
if tp_i < 0: tp_i=fs_i
|
||||
located = True
|
||||
elif located:
|
||||
Partition(d+s[nm_i:st_i].strip(), # device name
|
||||
Partition(d[:2] == 'md' and d or d+s[nm_i:st_i].strip(), # device name
|
||||
s[st_i:end_i].strip().rstrip(Partition.unit), # start
|
||||
s[sz_i:tp_i].strip().rstrip(Partition.unit), # size
|
||||
s[tp_i:fs_i].strip(), # type
|
||||
|
||||
Reference in New Issue
Block a user