https://bugzilla.novell.com/show_bug.cgi?id=637216 https://bugzilla.novell.com/show_bug.cgi?id=637216#c0 Summary: Incorrect bind-mounting in NFS server start script when using default option lists Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mike@m-buchau.de QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=387643) --> (http://bugzilla.novell.com/attachment.cgi?id=387643) patch for /etc/init.d/nfsserver User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-1.3 Firefox/3.6.8 The start script for the NFS server has provisions for automatically mounting the NFSv4 export tree using the option 'bind=srcdir'. The format specification for /etc/exports permits the configuration of default option lists after the pathname using a prepended '-' character. This can be followed by several client-specific option lists. When using the option 'bind=srcdir' as part of a default option list, the NFS server start script fails to correctly set up the export tree using bind mounts. Example /etc/exports: /export \ -fsid=root,ro,insecure,async,root_squash,no_subtree_check \ 192.168.123.0/24(sec=sys:krb5:krb5i:krb5p) \ *(sec=krb5p) /export/home \ -ro,nohide,insecure,async,root_squash,no_subtree_check,bind=/home \ 192.168.123.0/24(sec=sys:krb5:krb5i:krb5p,rw) \ *(sec=krb5p,rw) Reproducible: Always Steps to Reproduce: 1. Set up an NFSv4 server with an export tree composed of bind mounts (see details above) 2. Start the NFS server 3. Check the bind-mounting of /home under /export/home Actual Results: root@nfsclient:/etc/init.d # ./nfsserver start Starting kernel based NFS server:mount: special device /home 192.168.123.0/24(sec=none:sys:krb5:krb5i:krb5p does not exist svcgssd idmapd mountd statd nfsd sm-notify Expected Results: The /home filesystem should be bind-mounted under /export/home The attached patch for /etc/init.d/nfsserver fixes the parsing of /etc/exports to correctly support 'bind=srcdir' option in default option lists -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.