From anton@belle.urc.ac.ru  Thu Feb  4 05:33:22 1999
Received: from belle.urc.ac.ru (Belle.urc.ac.ru [193.233.85.55])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA14908
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 4 Feb 1999 05:33:10 -0800 (PST)
          (envelope-from anton@belle.urc.ac.ru)
Received: (from anton@localhost)
	by belle.urc.ac.ru (8.9.2/8.8.8) id SAA45167;
	Thu, 4 Feb 1999 18:32:34 +0500 (ES)
	(envelope-from anton)
Message-Id: <199902041332.SAA45167@belle.urc.ac.ru>
Date: Thu, 4 Feb 1999 18:32:34 +0500 (ES)
From: anton@urc.ac.ru
Reply-To: anton@urc.ac.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: NFS lookup when booting via network
X-Send-Pr-Version: 3.2

>Number:         9905
>Category:       kern
>Synopsis:       NFS lookup when booting via network
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb  4 05:40:01 PST 1999
>Closed-Date:    Thu Feb 18 08:00:21 PST 1999
>Last-Modified:  Thu Feb 18 08:01:45 PST 1999
>Originator:     Anton Voronin
>Release:        FreeBSD 3.0-STABLE i386
>Organization:
Southern Ural State University, Chelyabinsk, Russia
>Environment:

Kernel's NFS server code returns ENOENT error for existing file lookup query

>Description:

I boot a diskless workstation with netboot from fileserver operating under
3.0-stable. So as netboot doesn't undestand ELF, I boot aout 3.0-stable kernel.
When kernel loads it panics with "no init".

When file server worked under 2.2.8-stable all was OK.

>How-To-Repeat:

Compile aout kernel or use 2.2.x kernel and load it with netboot via network
from NFS fileserver operating under 3.0-STABLE. After loading kernel panics
with "no init".

>Fix:

I guess the problem is concluded in kernel nfs server code rather than in
client code because I tried to boot an old 2.2.x kernel with the same result.
I also tried to use nfsd from 2.2.x on the server with no luck.
I have traced the kernel a little using printf() calls and found that when
kernel does nfs lookup for "/sbin/init", it first succesfully gets vnode of
/sbin but then fails to get vnode of "init" using the /sbin directory vnode
received in previous lookup.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Thu Feb 18 08:00:21 PST 1999 
State-Changed-Why:  
Originator says this has been resolved. 
>Unformatted:
