modified: ri_tk_cmd.py
if a hard disk partition be made of a raid,the hard disk partition don't display on
mountpoint display frame.Node don't modified Mount's data
This commit is contained in:
@@ -18,10 +18,16 @@ def serial_no_quit():
|
||||
|
||||
def mount_list_init(w=''):
|
||||
''' initialize mount list '''
|
||||
ri_data.MountPoint.init_from_internal()
|
||||
dev_in_raid = set()
|
||||
l = []
|
||||
for r in ri_data.Raid.list:
|
||||
dev_in_raid.update(r.active_components)
|
||||
dev_in_raid.update(r.spare_components)
|
||||
ri_data.MountPoint.init_from_internal()
|
||||
for m in ri_data.MountPoint.list:
|
||||
# get size from Partition info
|
||||
if m.device in dev_in_raid:
|
||||
continue
|
||||
sz = ri_data.Partition.get_size(m.device)
|
||||
if not sz:
|
||||
sz = ri_data.Raid.get_size(m.device)
|
||||
|
||||
Reference in New Issue
Block a user