Author: kmachalkova Date: Wed Aug 6 15:06:54 2008 New Revision: 49768 URL: http://svn.opensuse.org/viewcvs/yast?rev=49768&view=rev Log: Create correct nfs fstab entries (do not forget to add filesystem name - nfs, or nfs4) (#395850) Modified: trunk/nfs-client/src/Nfs.ycp Modified: trunk/nfs-client/src/Nfs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/nfs-client/src/Nfs.ycp?rev=49768&r1=49767&r2=49768&view=diff ============================================================================== --- trunk/nfs-client/src/Nfs.ycp (original) +++ trunk/nfs-client/src/Nfs.ycp Wed Aug 6 15:06:54 2008 @@ -82,6 +82,7 @@ return($[ "spec":entry["server_path"]:"", "file":entry["mount_point"]:"", + "vfstype":entry["vfstype"]:"", "mntops":entry["nfs_options"]:"" ]); }); @@ -106,12 +107,23 @@ missing = true; } }); + + //Backwards compatibility: with FaTE#302031, we support nfsv4 mounts + //thus we need to keep info on nfs version (v3 vs. v4) + //But older AY profiles might not contain this element + //so let's assume nfsv3 in that case (#395850) + if ( !haskey(s, "vfstype") ) + { + s["vfstype"] = "nfs"; + } + }); if (missing) { return false; } + Set(settings); return true; } @@ -125,6 +137,7 @@ return($[ "server_path":entry["spec"]:"", "mount_point":entry["file"]:"", + "vfstype" :entry["vfstype"]:"", "nfs_options":entry["mntops"]:"" ]); }); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org