Author: aschnell
Date: Thu May 29 19:08:04 2008
New Revision: 47953
URL: http://svn.opensuse.org/viewcvs/yast?rev=47953&view=rev
Log:
- display chunk size
Modified:
branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp
branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp
Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp?rev=47953&r1=47952&r2=47953&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-raid.ycp Thu May 29 19:08:04 2008
@@ -57,9 +57,9 @@
map tg = Storage::GetTargetMap();
list<symbol> fields = StorageFields::Filter([ `heading_device, `device, `size, `used_by,
- `heading_md, `raid_type, `heading_filesystem,
- `fs_type, `mount_point, `mount_by, `uuid,
- `label, `encrypted ]);
+ `heading_md, `raid_type, `chunk_size,
+ `heading_filesystem, `fs_type, `mount_point,
+ `mount_by, `uuid, `label, `encrypted ]);
UI::ReplaceWidget(`tab_panel,
`VBox(
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=47953&r1=47952&r2=47953&view=diff
==============================================================================
--- branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp (original)
+++ branches/tmp/aschnell/part-redesign/storage/src/modules/StorageFields.ycp Thu May 29 19:08:04 2008
@@ -182,6 +182,11 @@
header = add(header, _("RAID Type"));
break;
+ case `chunk_size:
+ // Column header
+ header = add(header, _("Chunk Size"));
+ break;
+
default:
y2error("unknown field %1", field);
header = add(header, "");
@@ -482,6 +487,16 @@
return sformat(_("RAID Type: %1"), value);
}
+ case `chunk_size:
+ {
+ integer chunksize = data["chunk_size"]:0;
+ string value = Storage::ByteToHumanStringWithPrecision(chunksize*1024, 2, true);
+ if (style == `table)
+ return value;
+ else
+ return sformat(_("Chunk Size: %1"), value);
+ }
+
case `start_cyl:
{
string value = "--";
@@ -792,9 +807,18 @@
};
string content = mergestring(maplist(list<symbol> subfields, my_unflatten(fields), {
- return HTML::Heading(Heading(subfields[0]:`none)) +
+ return HTML::Heading(Heading(subfields[0]:`none)) +
+ HTML::List(List(sublist(subfields, 1, size(subfields) - 1)));
+ }), "");
+
+ /*
+ string content = mergestring(maplist(list<symbol> subfields, unflatten(symbol field, fields, {
+ return substring(tostring(field), 0, 8) == "`heading";
+ }), {
+ return HTML::Heading(Heading(subfields[0]:`none)) +
HTML::List(List(sublist(subfields, 1, size(subfields) - 1)));
}), "");
+ */
return content;
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org