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:
fling
2010-10-29 11:35:07 +08:00
parent 67ff409410
commit df515ef85e

View File

@@ -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