From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 14 03:50:29 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 154B916A4D3 for ; Fri, 14 Jan 2005 03:50:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81A0743D2D for ; Fri, 14 Jan 2005 03:50:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0E3oOZ7079059 for ; Fri, 14 Jan 2005 03:50:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0E3oOh4079057; Fri, 14 Jan 2005 03:50:24 GMT (envelope-from gnats) Resent-Date: Fri, 14 Jan 2005 03:50:24 GMT Resent-Message-Id: <200501140350.j0E3oOh4079057@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yar Tikhiy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2805916A4CE for ; Fri, 14 Jan 2005 03:48:02 +0000 (GMT) Received: from stylish.chem.msu.su (stylish.chem.msu.su [158.250.32.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3894C43D2F for ; Fri, 14 Jan 2005 03:48:01 +0000 (GMT) (envelope-from yar@stylish.chem.msu.su) Received: from stylish.chem.msu.su (localhost [127.0.0.1]) by stylish.chem.msu.su (8.13.1/8.13.1) with ESMTP id j0E3kWnn001141 for ; Fri, 14 Jan 2005 06:46:33 +0300 (MSK) (envelope-from yar@stylish.chem.msu.su) Received: (from yar@localhost) by stylish.chem.msu.su (8.13.1/8.13.1/Submit) id j0E3kWXJ001140; Fri, 14 Jan 2005 06:46:32 +0300 (MSK) (envelope-from yar) Message-Id: <200501140346.j0E3kWXJ001140@stylish.chem.msu.su> Date: Fri, 14 Jan 2005 06:46:32 +0300 (MSK) From: Yar Tikhiy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/76234: System cannot guess NFS client module name to autoload it X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 03:50:29 -0000 >Number: 76234 >Category: kern >Synopsis: System cannot guess NFS client module name to autoload it >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 14 03:50:24 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Yar Tikhiy >Release: FreeBSD 6.0-CURRENT i386 >Organization: Moscow State University >Environment: System: FreeBSD stylish.chem.msu.su 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Mon Jan 10 21:00:34 MSK 2005 yar@stylish.chem.msu.su:/usr/obj/usr/src/sys/STYLISH i386 >Description: The mount(2) syscall handler will attempt autoloading the file system module if the file system type to mount isn't there. To do that, it assumes that the file system "foofs" is handled by the module "foofs.ko". Therefore it cannot guess the NFS client module name since it's "nfsclient.ko", not "nfs.ko". >How-To-Repeat: stylish# grep ports /etc/fstab bsd:/usr/ports /usr/ports nfs ro,noauto 0 0 stylish# ktrace -i mount /usr/ports nfs: /usr/ports: No such file or directory stylish# kdump ... 917 mount_nfs CALL mount(0x804b15b,0xbfbfe3a4,0x1,0xbfbfe7a4) 917 mount_nfs NAMI "/boot/kernel/linker.hints" 917 mount_nfs NAMI "/boot/kernel/nfs" 917 mount_nfs NAMI "/boot/kernel/nfs.ko" 917 mount_nfs NAMI "/boot/modules/linker.hints" 917 mount_nfs NAMI "/boot/modules/nfs" 917 mount_nfs NAMI "/boot/modules/nfs.ko" 917 mount_nfs RET mount -1 errno 2 No such file or directory >Fix: It would be ugly to hardcode this special case in the mount(2) handler, a symlink nfs.ko -> nfsclient.ko would be a better solution. >Release-Note: >Audit-Trail: >Unformatted: