Mailinglist Archive: yast-commit (129 mails)

< Previous Next >
[yast-commit] r68112 - in /branches/SuSE-Code-11-SP2-Branch/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:40:47 2012
New Revision: 68112

URL: http://svn.opensuse.org/viewcvs/yast?rev=68112&view=rev
Log:
- fixed available mount-by methods for newly created partitions

Modified:
branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes

branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-dialogs.ycp
branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-lib.ycp

Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes?rev=68112&r1=68111&r2=68112&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes
(original)
+++ branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes Wed
May 9 11:40:47 2012
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Wed May 09 11:06:59 CEST 2012 - aschnell@xxxxxxx
+
+- fixed available mount-by methods for newly created partitions
+
+-------------------------------------------------------------------
Mon Mar 12 16:42:36 CET 2012 - aschnell@xxxxxxx

- 2.17.127

Modified:
branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-dialogs.ycp?rev=68112&r1=68111&r2=68112&view=diff
==============================================================================
---
branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-dialogs.ycp
(original)
+++
branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-dialogs.ycp
Wed May 9 11:40:47 2012
@@ -70,6 +70,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;
@@ -305,6 +317,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);
+ }
}

// dialog title

Modified:
branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-lib.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-lib.ycp?rev=68112&r1=68111&r2=68112&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-lib.ycp
(original)
+++ branches/SuSE-Code-11-SP2-Branch/storage/storage/src/include/ep-hd-lib.ycp
Wed May 9 11:40:47 2012
@@ -215,7 +215,7 @@

map slots = GetPossibleSlots(disk, disk_device);

- if (size(slots) > 0)
+ if (!isempty(slots))
{
map<string, any> data = $[ "new" : true,
"create" : true,
@@ -224,6 +224,12 @@
"cyl_count" : disk["cyl_count"]:0,
"slots" : slots ];

+ if (haskey(disk, "udev_id"))
+ data["disk_udev_id"] = disk["udev_id"]:[];
+
+ if (haskey(disk, "udev_path"))
+ data["disk_udev_path"] = disk["udev_path"]:"";
+
data["using_devices"] = [ disk_device ];

if (DlgCreatePartition(data))

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages