From ajmawer@mawer.org  Fri Sep 30 13:03:44 2005
Return-Path: <ajmawer@mawer.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 301C816A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Sep 2005 13:03:44 +0000 (GMT)
	(envelope-from ajmawer@mawer.org)
Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 95E3743D48
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Sep 2005 13:03:43 +0000 (GMT)
	(envelope-from ajmawer@mawer.org)
Received: from scooby.enchanted.net (c220-237-120-88.thorn1.nsw.optusnet.com.au [220.237.120.88])
	by mail12.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j8UD3fGG015887
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Sep 2005 23:03:41 +1000
Received: by scooby.enchanted.net (Postfix, from userid 1001)
	id 90E4E8C; Fri, 30 Sep 2005 23:03:41 +1000 (EST)
Message-Id: <20050930130341.90E4E8C@scooby.enchanted.net>
Date: Fri, 30 Sep 2005 23:03:41 +1000 (EST)
From: Antony Mawer <gnats@mawer.org>
Reply-To: Antony Mawer <gnats@mawer.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] mount_nwfs fails with syserr = No such file or directory
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86757
>Category:       kern
>Synopsis:       [patch] mount_nwfs fails with syserr = No such file or directory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 30 13:10:13 GMT 2005
>Closed-Date:    Fri Sep 30 18:21:53 GMT 2005
>Last-Modified:  Fri Sep 30 18:21:53 GMT 2005
>Originator:     Antony Mawer
>Release:        FreeBSD 6.0-BETA2 i386
>Organization:
GP Technology Solutions
>Environment:
System: FreeBSD scooby.enchanted.net 6.0-BETA2 FreeBSD 6.0-BETA2 #1: Mon Aug 8 09:56:30 EST 2005 root@scooby.enchanted.net:/usr/obj/usr/src/sys/SCOOBY i386

>Description:
The NWFS code in RELENG_6 is broken due to a typo in sys/fs/nwfs/nwfs_vfsops.c, introduced
with the conversion to nmount with revision 1.38. This causes mount_nwfs to fail with
the error message:

  mount_nwfs: mount error: /mnt/netware: syserr = No such file or directory

This is caused by a typo on line 178, which specifies "nwfw_args" rather than "nwfs_args".
Changing this argument allows mount_nwfs to operate correctly. This would be nice to have
fixed before 6.0 is released.
>How-To-Repeat:
        1. Attempt to mount a Netware volume by typing:
            mount_nwfs /NETWARE:USER/VOLUME /mnt/netware
        2. Enter a password when prompted
        3. Observe (misleading) "No such file or directory" error

>Fix:
	s/nwfw_args/nwfs_args/ on the affected line. See attached patch.

--- mount_nwfs_fix.diff begins here ---
Index: sys/fs/nwfs/nwfs_vfsops.c
===================================================================
RCS file: /home/ncvs/src/sys/fs/nwfs/nwfs_vfsops.c,v
retrieving revision 1.40
diff -u -r1.40 nwfs_vfsops.c
--- sys/fs/nwfs/nwfs_vfsops.c	24 Mar 2005 07:36:14 -0000	1.40
+++ sys/fs/nwfs/nwfs_vfsops.c	30 Sep 2005 12:30:22 -0000
@@ -175,7 +175,7 @@
 		nwfs_printf("MNT_UPDATE not implemented");
 		return (EOPNOTSUPP);
 	}
-	error = vfs_copyopt(mp->mnt_optnew, "nwfw_args", &args, sizeof args);
+	error = vfs_copyopt(mp->mnt_optnew, "nwfs_args", &args, sizeof args);
 	if (error)
 		return (error);
 	if (args.version != NWFS_VERSION) {
--- mount_nwfs_fix.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Fri Sep 30 18:21:31 GMT 2005 
State-Changed-Why:  
Yes, I fat-fingered that one. 

Committed to -current, MFC to follow. 

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