Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2002 14:06:07 +0300
From:      Gennady Proskurin <gpr@nvnpp.vrn.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/36088: [patch] mount_nfs loads "nfs" module instead of "nfsclient"
Message-ID:  <E16nHRP-0004iN-00@fbsd.nvnpp.vrn.ru>

next in thread | raw e-mail | index | archive | help

>Number:         36088
>Category:       bin
>Synopsis:       [patch] mount_nfs loads "nfs" module instead of "nfsclient"
>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:   Tue Mar 19 03:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gennady Proskurin
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gpr.nvnpp.lan 5.0-CURRENT FreeBSD 5.0-CURRENT #31: Mon Mar 19 09:59:59 MSK 2002 gpr@gpr.nvnpp.lan:/usr/obj/usr/src/sys/gpr i386

	
>Description:
mount_nfs(8) tries to load "nfs" module instead "nfs_client", if no
NFS filesystem module in kernel
	
>How-To-Repeat:
- Make sure, that kernel doesn't support nfs VFS (compiled without NFS and no nfsclient module loaded)
- Try to mount any filesystem using mount_nfs

Result:
nfs: vfsload(nfs): No such file or directory

	
>Fix:

--- src/sbin/mount_nfs/mount_nfs.c.orig	Tue Mar 19 13:19:05 2002
+++ src/sbin/mount_nfs/mount_nfs.c	Tue Mar 19 13:32:55 2002
@@ -437,9 +437,9 @@
 	(void)checkpath(name, mntpath);
 
 	error = getvfsbyname("nfs", &vfc);
-	if (error && vfsisloadable("nfs")) {
-		if(vfsload("nfs"))
-			err(EX_OSERR, "vfsload(nfs)");
+	if (error && vfsisloadable("nfsclient")) {
+		if(vfsload("nfsclient"))
+			err(EX_OSERR, "vfsload(nfsclient)");
 		endvfsent();	/* clear cache */
 		error = getvfsbyname("nfs", &vfc);
 	}

	


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16nHRP-0004iN-00>