[yast-commit] r48493 - in /branches/tmp/aschnell/part-redesign/storage/src: include/ep-hd.ycp include/ep-lvm.ycp modules/StorageFields.ycp
Author: aschnell Date: Mon Jun 23 23:25:40 2008 New Revision: 48493 URL: http://svn.opensuse.org/viewcvs/yast?rev=48493&view=rev Log: - display cylinder size - consistency Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp?rev=48493&r1=48492&r2=48493&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-hd.ycp Mon Jun 23 23:25:40 2008 @@ -186,7 +186,8 @@ list<symbol> fields = StorageSettings::FilterOverview([ `heading_device, `device, `size, `udev_path, `udev_id, `used_by, `heading_hd, `vendor, - `model, `bus, `bios_id, `disk_label ]); + `model, `num_cyl, `cyl_size, `bus, `bios_id, + `disk_label ]); UI::ReplaceWidget(`tab_panel, `VBox( Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp?rev=48493&r1=48492&r2=48493&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-lvm.ycp Mon Jun 23 23:25:40 2008 @@ -116,7 +116,7 @@ list<symbol> fields = StorageSettings::FilterTable([ `device, `size, `format, `type, `mount_point, `mount_by, `used_by, - `lvm_metadata, `pe_size, `stripes ]); + `stripes ]); map<string, map> target_map = Storage::GetTargetMap(); Modified: branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp?rev=48493&r1=48492&r2=48493&view=diff ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp Mon Jun 23 23:25:40 2008 @@ -496,9 +496,31 @@ return sformat(_("Parity Algorithm: %1"), value); } + case `num_cyl: + { + string value = ""; + if (part == nil && Storage::IsPartitionable(disk)) + value = tostring(disk["cyl_count"]:0); + if (style == `table) + return value; + else + return sformat(_("Number of Cylinders: %1"), value); + } + + case `cyl_size: + { + string value = ""; + if (part == nil && Storage::IsPartitionable(disk)) + value = Storage::ByteToHumanString(disk["cyl_size"]:0); + if (style == `table) + return value; + else + return sformat(_("Cylinder Size: %1"), value); + } + case `start_cyl: { - string value = "--"; + string value = ""; if (Storage::IsPartitionable(disk)) { if (part == nil) value = tostring(0); @@ -513,7 +535,7 @@ case `end_cyl: { - string value = "--"; + string value = ""; if (Storage::IsPartitionable(disk)) { if (part == nil) value = tostring(disk["cyl_count"]:0 - 1); @@ -646,7 +668,7 @@ if (partition == nil) { if (contains(disk_devices, disk["device"]:"")) - return `showandfollow; + return `follow; else return `ignore; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org