[yast-commit] r60209 - /trunk/storage/storage/src/include/ep-lib.ycp
Author: aschnell Date: Wed Dec 30 18:25:34 2009 New Revision: 60209 URL: http://svn.opensuse.org/viewcvs/yast?rev=60209&view=rev Log: - fixed partitions bar for MdParts Modified: trunk/storage/storage/src/include/ep-lib.ycp Modified: trunk/storage/storage/src/include/ep-lib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-lib.ycp?rev=60209&r1=60208&r2=60209&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-lib.ycp (original) +++ trunk/storage/storage/src/include/ep-lib.ycp Wed Dec 30 18:25:34 2009 @@ -316,7 +316,10 @@ return `Empty(); map<string, map> target_map = Storage::GetTargetMap(); - map disk = Storage::GetDisk(target_map, device); + + map disk = nil; + map part = nil; + SplitDevice(target_map, device, disk, part); if (!isempty(disk["used_by"]:[])) return `Empty(); @@ -332,11 +335,12 @@ labels = add(labels, label + "\n" + Storage::KByteToHumanString(size_k)); } - switch (disk["type"]:`UNKNOWN) + switch (disk["type"]:`CT_UNKNOWN) { case `CT_DISK: case `CT_DMRAID: case `CT_DMMULTIPATH: + case `CT_MDPART: { string emptyspace = _("Unpartitioned Space"); -- 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