Date: Wed, 19 Sep 2001 14:25:42 +0200 (CEST) From: Harti Brandt <brandt@fokus.gmd.de> To: <peter@freebsd.org> Cc: <current@freebsd.org> Subject: mount_nfs problem... Message-ID: <20010919142034.S31209-100000@beagle.fokus.gmd.de>
next in thread | raw e-mail | index | archive | help
Hello Peter, after your Mega-commit mounting of NFS file systems does not work if NFS is not compiled into the kernel. The problem is in the following code snippet in sbin/mount_nfs: error = getvfsbyname("nfs", &vfc); if (error && vfsisloadable("nfs")) { if(vfsload("nfs")) err(EX_OSERR, "vfsload(nfs)"); endvfsent(); /* clear cache */ error = getvfsbyname("nfs", &vfc); } The *vfs* functions seem to rely on the fact that the module is named exactly like the file system. vfsload() does not load the named file system type, but the named kernel module. Now the kernel module for the client code is named 'nfsclient' so a change of the above to if(vfsload("nfsclient")) appears to work (but looks rather misleading to the casual reader - what kind of file system is 'nfsclient'?) harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010919142034.S31209-100000>