Bug 387088

Summary: Need a way to share code between yast2-nfs-server and -nfs-client (feature #302031)
Product: [openSUSE] openSUSE 11.1 Reporter: Katarina Machalkova <kmachalkova>
Component: YaST2Assignee: Katarina Machalkova <kmachalkova>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: mvidner
Version: Alpha 0   
Target Milestone: Alpha 3plus   
Hardware: Other   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Katarina Machalkova 2008-05-06 09:13:01 UTC
With feature #302031, support for mounting nfsv4 shares has been introduced to yast2-nfs-client. For successful accessing nfsv4 share, local domain needs to be entered into /etc/idmapd.conf, to prevent file/directory ownership issues.
The code supporting this on UI side is there, but it is a dummy one so far, as the agent for reading/writing idmapd.conf is part of yast2-nfs-server package. If we don't want to make nfs-client depend on nfs-server, we have in fact two options.

1) Move shared code to y2-nfs-client package and have y2-nfs-server depend on y2-nfs-client. This makes much more sense than the other way round (client depending on server), but as the client is part of Yast basic pattern, while server is not, some packages, namely limal-nfs-server and limal-nfs-server-perl + all their dependencies would need to be included in that pattern

2) Create a subpackage of y2-nfs-server, containing the shared code and have y2-nfs-client depend on that. Not sure, however, if it is not too late to introduce new pkgs now :(
Comment 1 Katarina Machalkova 2008-05-06 09:14:58 UTC
Coolo, please choose the lesser evil of the above two.
Comment 2 Stephan Kulow 2008-05-06 12:29:41 UTC
it's not too late for new packages, no. Just create a yast2-nfs-common as subpackage of yast2-nfs-server
Comment 3 Katarina Machalkova 2008-05-06 13:12:59 UTC
Martin, I'll assign this to you now to make the package split. When done, just pass back to me, I'll adapt y2-nfs-client code.
Comment 4 Martin Vidner 2008-05-21 10:57:37 UTC
yast2-nfs-server-2.16.1 submitted, yast2-nfs-client created in PDB.
Comment 5 Katarina Machalkova 2008-09-08 13:03:55 UTC
Fixed in y2-nfs-client 2.17.3