From nobody@FreeBSD.org  Thu Jun 22 16:28:34 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9F16716A50E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Jun 2006 16:28:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EBA1544039
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Jun 2006 16:07:32 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k5MG7Wbm029413
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 22 Jun 2006 16:07:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k5MG7WLK029412;
	Thu, 22 Jun 2006 16:07:32 GMT
	(envelope-from nobody)
Message-Id: <200606221607.k5MG7WLK029412@www.freebsd.org>
Date: Thu, 22 Jun 2006 16:07:32 GMT
From: JP Hartmann <jphartmann@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount_nfs incompatible with zVM VMNFS 3A0
X-Send-Pr-Version: www-2.3

>Number:         99307
>Category:       bin
>Synopsis:       [patch] mount_nfs(8) incompatible with zVM VMNFS 3A0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 22 16:30:20 GMT 2006
>Closed-Date:    
>Last-Modified:  Thu Jun 22 18:06:19 GMT 2006
>Originator:     JP Hartmann
>Release:        6.1
>Organization:
IBM
>Environment:
FreeBSD FreeBSD.jphartmann.net 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Sat Jun 17 11:51:42 CEST 2006     root@FreeBSD.jphartmann.net:/usr/src/sys/i386/compile/KERNEL  i386

>Description:
The zVM NFS server returns RPCAUTH_NULL in the mount reply, at least when
it is configured to support anonymous.  This is turned into EAUTH in xdr_fh().
Which in turn causes the mount to fail with 

FreeBSD# mount_nfs -T -3 -R 1 cphart:sfs /sfs
[tcp] cphart:sfs: Authentication error

It would have been a great help if mount_nfs had issued a message indicating
the server authorisation it did not like.  The message indicates that the
server rejected the mount, but to my surprise the server had as many mounts
as I had tried.

That said, configuring that particular level of NFS server is also quite
challenging :-)
>How-To-Repeat:
You need a zVM system clearly, and they are not easy to come by.
vm.marist.edu is one, but chances are slim that they are NFS exporting
anything to the outside world.
>Fix:
--- mount_nfs.c.old     Thu Jun 22 12:06:24 2006
+++ mount_nfs.c Thu Jun 22 14:13:26 2006
@@ -900,7 +900,7 @@
                for (i = 0; i < authcnt; i++) {
                        if (!xdr_long(xdrsp, &auth))
                                return (0);
-                       if (auth == np->auth)
+                       if (auth == np->auth || RPCAUTH_NULL == auth)
                                authfnd++;
                }
                /*

>Release-Note:
>Audit-Trail:
>Unformatted:
