work on raid:
add 'from_os' attribute to raid and partition add raw init, raw_to_active
This commit is contained in:
@@ -2,20 +2,19 @@
|
||||
<install>
|
||||
<serial-number>123456789</serial-number>
|
||||
<partitions unit='sectors'>
|
||||
<partition device='sda1' start='63' id='83' size='195318207'/>
|
||||
<partition device='sda2' start='195318270' id='82' size='3903795'/>
|
||||
<partition device='sda3' start='199222065' id='83' size='195318270'/>
|
||||
<partition device='sda4' start='394540335' id='83' size='582227730'/>
|
||||
<partition device='sdb1' start='63' id='83' size='125837082'/>
|
||||
<partition device='sdb2' start='125837145' id='82' size='8401995'/>
|
||||
<partition device='sdb3' start='134240256' id='83' size='354154799'/>
|
||||
<partition device='sdb4' start='0' id='0' size='0'/>
|
||||
<partition device='sda1' start='63' from_os='yes' id='83' size='195318207'/>
|
||||
<partition device='sda2' start='195318270' from_os='yes' id='fd' size='3903795'/>
|
||||
<partition device='sda3' start='199222065' from_os='yes' id='fd' size='195318270'/>
|
||||
<partition device='sda4' start='394540335' from_os='yes' id='fd' size='582227730'/>
|
||||
<partition device='sdb1' start='63' from_os='yes' id='83' size='125837082'/>
|
||||
<partition device='sdb2' start='125837145' from_os='yes' id='82' size='8401995'/>
|
||||
<partition device='sdb3' start='134240256' from_os='yes' id='83' size='354154799'/>
|
||||
<partition device='sdb4' start='0' from_os='yes' id='0' size='0'/>
|
||||
</partitions>
|
||||
<raids>
|
||||
<raid device='md0' size='-1' level='1'>
|
||||
<raid device='md0' from_os='no' size='-1' level='1'>
|
||||
<active>
|
||||
<component>sda1</component>
|
||||
<component/>
|
||||
</active>
|
||||
<spare>
|
||||
<component>sdb1</component>
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
<attribute name='start'/>
|
||||
<attribute name='size'/>
|
||||
<attribute name='id'/>
|
||||
<attribute name='from_os'>
|
||||
<ref name='mybool'/>
|
||||
</attribute>
|
||||
</element>
|
||||
</oneOrMore>
|
||||
</element>
|
||||
@@ -50,6 +53,9 @@
|
||||
</choice>
|
||||
</attribute>
|
||||
<attribute name="size"/>
|
||||
<attribute name="from_os">
|
||||
<ref name='mybool'/>
|
||||
</attribute>
|
||||
<element name='active'>
|
||||
<ref name='raid_components'/>
|
||||
</element>
|
||||
|
||||
@@ -634,6 +634,7 @@ row 4 | |
|
||||
<widget_attribute listvariable='raid_raw_devs'/>
|
||||
<grid_location row='1' column='0' sticky='NWES'/>
|
||||
<variable name='raid_raw_devs' type='StringVar'/>
|
||||
<action init='raid_raw_init'/>
|
||||
</widget>
|
||||
|
||||
<widget type='Scrollbar' name='raid_raw.scroll'>
|
||||
@@ -656,7 +657,7 @@ row 4 | |
|
||||
<grid_location row='0' column='1' sticky='W'/>
|
||||
</widget>
|
||||
<widget type='Button'>
|
||||
<widget_attribute text='->'/>
|
||||
<widget_attribute text='->' command='raid_raw_to_active'/>
|
||||
<grid_location row='1' column='0' sticky='S'/>
|
||||
</widget>
|
||||
<widget type='Button'>
|
||||
@@ -746,6 +747,7 @@ row 4 | |
|
||||
<widget_attribute listvariable='raid_dev.list'/>
|
||||
<grid_location row='1' column='1' rowspan='2'/>
|
||||
<variable name='raid_dev.list' type='StringVar'/>
|
||||
<action init='raid_device_init'/>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
Reference in New Issue
Block a user