[yast-commit] r68106 - in /trunk/storage: package/yast2-storage.changes storage/src/include/ep-hd-dialogs.ycp storage/src/include/ep-hd-lib.ycp
Author: aschnell
Date: Wed May 9 11:07:58 2012
New Revision: 68106
URL: http://svn.opensuse.org/viewcvs/yast?rev=68106&view=rev
Log:
- fixed available mount-by methods for newly created partitions
Modified:
trunk/storage/package/yast2-storage.changes
trunk/storage/storage/src/include/ep-hd-dialogs.ycp
trunk/storage/storage/src/include/ep-hd-lib.ycp
Modified: trunk/storage/package/yast2-storage.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=68106&r1=68105&r2=68106&view=diff
==============================================================================
--- trunk/storage/package/yast2-storage.changes (original)
+++ trunk/storage/package/yast2-storage.changes Wed May 9 11:07:58 2012
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed May 09 11:06:59 CEST 2012 - aschnell@suse.de
+
+- fixed available mount-by methods for newly created partitions
+
+-------------------------------------------------------------------
Mon May 7 15:26:13 CEST 2012 - fehr@suse.de
- fix bug during creation of MD devices over multipath devices via
Modified: trunk/storage/storage/src/include/ep-hd-dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd-dialogs.ycp?rev=68106&r1=68105&r2=68106&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-hd-dialogs.ycp (original)
+++ trunk/storage/storage/src/include/ep-hd-dialogs.ycp Wed May 9 11:07:58 2012
@@ -91,6 +91,18 @@
map r = Storage::NextPartition(data["disk_device"]:"", data["type"]:`none);
data["device"] = r["device"]:"";
+ if (haskey(data, "disk_udev_id"))
+ {
+ data["udev_id"] = maplist(string s, data["disk_udev_id"]:[], {
+ return sformat("%1-part%2", s, r["nr"]:0);
+ });
+ }
+
+ if (haskey(data, "disk_udev_path"))
+ {
+ data["udev_path"] = sformat("%1-part%2", data["disk_udev_path"]:"", r["nr"]:0);
+ }
+
if (data["type"]:`unknown == `extended)
{
data["fsid"] = Partitions::fsid_extended_win;
Modified: trunk/storage/storage/src/include/ep-hd-lib.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd-lib.ycp?rev=68106&r1=68105&r2=68106&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-hd-lib.ycp (original)
+++ trunk/storage/storage/src/include/ep-hd-lib.ycp Wed May 9 11:07:58 2012
@@ -236,7 +236,7 @@
map slots = GetPossibleSlots(disk, disk_device);
- if (size(slots) > 0)
+ if (!isempty(slots))
{
map
participants (1)
-
aschnell@svn2.opensuse.org