From df515ef85e6c3401ba9c71bf8e238c0f219d6fde Mon Sep 17 00:00:00 2001 From: fling Date: Fri, 29 Oct 2010 11:35:07 +0800 Subject: [PATCH] modified: ri_data.py if device is a raid(md0), the raid device doesn't add Number eg : md0 + "1"=md01 is error. --- interface/ri_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/ri_data.py b/interface/ri_data.py index 884f7ac..cf38e2d 100644 --- a/interface/ri_data.py +++ b/interface/ri_data.py @@ -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