From simon@comsys.ntu-kpi.kiev.ua  Fri May 17 11:18:52 2013
Return-Path: <simon@comsys.ntu-kpi.kiev.ua>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id C74BA565
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 May 2013 11:18:52 +0000 (UTC)
	(envelope-from simon@comsys.ntu-kpi.kiev.ua)
Received: from comsys.kpi.ua (comsys.kpi.ua [77.47.192.42])
	by mx1.freebsd.org (Postfix) with ESMTP id 854033F5
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 17 May 2013 11:18:51 +0000 (UTC)
Received: from pm513-1.comsys.kpi.ua ([10.18.52.101] helo=pm513-1.comsys.ntu-kpi.kiev.ua)
	by comsys.kpi.ua with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.63)
	(envelope-from <simon@comsys.ntu-kpi.kiev.ua>)
	id 1UdIgN-0004Kz-Lw
	for FreeBSD-gnats-submit@freebsd.org; Fri, 17 May 2013 14:18:43 +0300
Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001)
	id 3ACE31E08A; Fri, 17 May 2013 14:18:43 +0300 (EEST)
Message-Id: <20130517111842.GA69363@pm513-1.comsys.ntu-kpi.kiev.ua>
Date: Fri, 17 May 2013 14:18:42 +0300
From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Correct WebNFS support in NFS server and client from sys/fs

>Number:         178713
>Category:       kern
>Synopsis:       [nfs] [patch] Correct WebNFS support in NFS server and client from sys/fs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 17 11:20:02 UTC 2013
>Closed-Date:    Mon Sep 23 13:15:25 UTC 2013
>Last-Modified:  Mon Sep 23 13:15:25 UTC 2013
>Originator:     Andrey Simonenko
>Release:        FreeBSD 10-CURRENT amd64
>Organization:
>Environment:
>Description:

The following change corrects WebNFS support in NFS server and client
from the sys/fs/ sources:

1. fs/nfs/nfs_commonsubs.c:nfsm_fhtom(): do not assume size argument
   with the zero value as default size value.  All nfsm_fhtom() calls
   with size argument with the zero value were modified and now have
   the NFSX_MYFH value.

2. fs/nfsserver/nfs_nfsdsubs.c:nfsrv_mtofh(): allow public filehandle
   to be used for all requests, not only for LOOKUPs.

3. fs/nfsclient/nfs_clvfsops.c:mountnfs(): allow filehandle with
   the zero length for NFSv3.

Index files are not supported by NFS server from sys/fs/nfsserver/
and adding such support will require API change.

>How-To-Repeat:

Add WebNFS support to mount_nfs from bin/178392 and try to mount
WebNFS exported file system.

>Fix:
[ patch elided - gavin ]
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri May 17 21:56:04 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178713 
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Sep 23 13:12:49 UTC 2013 
State-Changed-Why:  
Submitter requested that this PR be closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178713 
>Unformatted:
