Mailinglist Archive: yast-commit (595 mails)

< Previous Next >
[yast-commit] r54045 - in /trunk/nfs-client/src: nfs-client4part.ycp ui.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Thu, 11 Dec 2008 10:32:43 -0000
  • Message-id: <20081211103243.930DAB0F31@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Thu Dec 11 11:32:43 2008
New Revision: 54045

URL: http://svn.opensuse.org/viewcvs/yast?rev=54045&view=rev
Log:
Ground for handling NFS share renaming (changing
server name) in partitioner

Modified:
trunk/nfs-client/src/nfs-client4part.ycp
trunk/nfs-client/src/ui.ycp

Modified: trunk/nfs-client/src/nfs-client4part.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/nfs-client/src/nfs-client4part.ycp?rev=54045&r1=54044&r2=54045&view=diff
==============================================================================
--- trunk/nfs-client/src/nfs-client4part.ycp (original)
+++ trunk/nfs-client/src/nfs-client4part.ycp Thu Dec 11 11:32:43 2008
@@ -31,11 +31,15 @@
map <string, any> ret = $[];

if (entry != nil && entry != $[])
+ {
ret = $[
"device" : entry["spec"]:"",
"mount" : entry["file"]:"",
"fstopt" : entry["mntops"]:""
];
+ if (haskey ( entry, "old" ))
+ ret = add(ret, "old_device" , entry["old"]:"" );
+ }
return ret;
}


Modified: trunk/nfs-client/src/ui.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/nfs-client/src/ui.ycp?rev=54045&r1=54044&r2=54045&view=diff
==============================================================================
--- trunk/nfs-client/src/ui.ycp (original)
+++ trunk/nfs-client/src/ui.ycp Thu Dec 11 11:32:43 2008
@@ -193,6 +193,7 @@
boolean nfs4 = false;
string options = "defaults";
list <string> servers = [ ];
+ string old = "";

if (fstab_ent != nil)
{
@@ -203,6 +204,7 @@
nfs4 = fstab_ent["vfstype"]:"" == "nfs4";
options = fstab_ent["mntops"]:"";
servers = [ server ];
+ old = fstab_ent["spec"]:"";
}
else
{
@@ -390,6 +392,8 @@
"vfstype" : nfs4 ? "nfs4" : "nfs",
"mntops" : options,
];
+ if (old != (server+":"+pth))
+ fstab_ent = add(fstab_ent, "old", old);
ret = `ok;
}
}

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

< Previous Next >
This Thread
  • No further messages