Author: aschnell
Date: Mon Feb 1 14:17:51 2010
New Revision: 60636
URL: http://svn.opensuse.org/viewcvs/yast?rev=60636&view=rev
Log:
- show MD info for MdParts
Modified:
branches/SuSE-Code-11-SP1-Branch/storage/storage/src/include/ep-hd.ycp
Modified: branches/SuSE-Code-11-SP1-Branch/storage/storage/src/include/ep-hd.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/storage/storage/src/include/ep-hd.ycp?rev=60636&r1=60635&r2=60636&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/storage/storage/src/include/ep-hd.ycp (original)
+++ branches/SuSE-Code-11-SP1-Branch/storage/storage/src/include/ep-hd.ycp Mon Feb 1 14:17:51 2010
@@ -193,16 +193,26 @@
map target_map = Storage::GetTargetMap();
- list<symbol> fields = StorageSettings::FilterOverview([ `heading_device, `device, `size, `udev_path,
- `udev_id, `used_by, `heading_hd, `vendor,
- `model, `num_cyl, `cyl_size, `bus, `bios_id,
- `disk_label, `heading_fc, `fc_wwpn, `fc_port_id,
- `fc_fcp_lun ]);
+ symbol ctype = target_map[device, "type"]:`CT_DISK;
+
+ list<symbol> fields = [ `heading_device, `device, `size, `udev_path, `udev_id, `used_by,
+ `heading_hd, `vendor, `model, `num_cyl, `cyl_size, `bus, `bios_id,
+ `disk_label ];
+
+ if (contains([ `CT_MDPART ], ctype))
+ {
+ fields = (list<symbol>) merge(fields, [ `heading_md, `raid_type, `chunk_size, `parity_algorithm ]);
+ }
+
+ if (contains([ `CT_DISK ], ctype))
+ {
+ fields = (list<symbol>) merge(fields, [`heading_fc, `fc_wwpn, `fc_port_id, `fc_fcp_lun ]);
+ }
UI::ReplaceWidget(`tab_panel,
`VBox(
`HStretch(),
- StorageFields::Overview(fields, target_map, device),
+ StorageFields::Overview(StorageSettings::FilterOverview(fields), target_map, device),
`HBox(
// push button text
`PushButton(`id(`delete), _("Delete...")),
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org