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:
@@ -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 '''
|
||||
|
||||
Reference in New Issue
Block a user