modified: ri_data.py

modified:   ri_tk_cmd.py
	modified:   ../xml/interface.xml
    updata  add message box for specal mount point
This commit is contained in:
fling
2010-11-10 17:15:51 +08:00
parent ad712491c3
commit 6de793eeb9
3 changed files with 28 additions and 31 deletions

View File

@@ -407,6 +407,21 @@ p_node - xml node (parent node)'''
return Partition.get_size(dev)
elif dev in Raid.dict.keys():
return Raid.get_size(dev)
@staticmethod
def is_check_data(dev,dr,fs):
'''check mount point is feasible. dr is mount point, dev is device'''
# check mount point is existent or not
if dr and dr in [ m.directory for m in MountPoint.dict.values() if m.device !=dev ]:
return False
# check mount point is special or not
if dr in ['/etc','/bin','/sbin','/lib']:
return False
elif dr in ['/','/boot'] and fs in ['reiserfs','xfs']:
return False
return True
class Network:
''' network '''