From nobody  Mon Oct  6 18:18:16 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.7/8.8.7) id SAA13618;
          Mon, 6 Oct 1997 18:18:16 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199710070118.SAA13618@hub.freebsd.org>
Date: Mon, 6 Oct 1997 18:18:16 -0700 (PDT)
From: mika@cs.caltech.edu
To: freebsd-gnats-submit@freebsd.org
Subject: aautomatic AMD mounts fail on first try, succeed on second
X-Send-Pr-Version: www-1.0

>Number:         4714
>Category:       bin
>Synopsis:       aautomatic AMD mounts fail on first try, succeed on second
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct  6 18:20:01 PDT 1997
>Closed-Date:    Wed Apr 1 03:51:56 PST 1998
>Last-Modified:  Wed Apr  1 03:52:30 PST 1998
>Originator:     Mika Nystrom
>Release:        FreeBSD-CURRENT/SMP 3.0
>Organization:
Dept. of C.S., California Institute of Technology
>Environment:
FreeBSD s1.cs.caltech.edu 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Wed Oct  1 20:23:54 PDT 1997     mika@obelix.cs.caltech.edu:/usr/src/sys/compile/P6CLIENT_2CPU_128MB  i386

The system is a dual PPro-200 running an SMP kernel.
(Same for the server machine)

>Description:


when reading files from an automounted directory, the first access 
fails, not the second, and so forth:
# ls -l /var/mail
lrwxrwxrwx  1 root  wheel  9 Aug 30 19:31 /var/mail -> /ufs/mail
# amq  
/              root    "root"                       obelix:(pid125)
/ufs           toplvl  /usr/share/etc/amd/auto.ufs  /ufs
/ufs/mail      nfs     vlsi:/var/spool/mail         /tmp_mnt/vlsi/var/spool/mail
/ufs/alains3   nfs     mars:/alains3                /tmp_mnt/mars/alains3
/ufs/alains2   nfs     mars:/alains2                /tmp_mnt/mars/alains2
/ufs/students  nfs     mercury:/students            /tmp_mnt/mercury/students
/ufs/alains    nfs     vlsi:/alains                 /tmp_mnt/vlsi/alains
# amq -u /ufs/mail
# amq
/              root    "root"                       obelix:(pid125)
/ufs           toplvl  /usr/share/etc/amd/auto.ufs  /ufs
/ufs/alains3   nfs     mars:/alains3                /tmp_mnt/mars/alains3
/ufs/alains2   nfs     mars:/alains2                /tmp_mnt/mars/alains2
/ufs/students  nfs     mercury:/students            /tmp_mnt/mercury/students
/ufs/alains    nfs     vlsi:/alains                 /tmp_mnt/vlsi/alains
(67)obelix:~>from
from: can't read /var/mail/mika
# amq
/              root    "root"                       obelix:(pid125)
/ufs           toplvl  /usr/share/etc/amd/auto.ufs  /ufs
/ufs/alains3   nfs     mars:/alains3                /tmp_mnt/mars/alains3
/ufs/alains2   nfs     mars:/alains2                /tmp_mnt/mars/alains2
/ufs/students  nfs     mercury:/students            /tmp_mnt/mercury/students
/ufs/alains    nfs     vlsi:/alains                 /tmp_mnt/vlsi/alains
(68)obelix:~>frm
You have no mail.
# amq
/              root    "root"                       obelix:(pid125)
/ufs           toplvl  /usr/share/etc/amd/auto.ufs  /ufs
/ufs/mail      nfs     vlsi:/var/spool/mail         /tmp_mnt/vlsi/var/spool/mail
/ufs/alains3   nfs     mars:/alains3                /tmp_mnt/mars/alains3
/ufs/alains2   nfs     mars:/alains2                /tmp_mnt/mars/alains2
/ufs/students  nfs     mercury:/students            /tmp_mnt/mercury/students
/ufs/alains    nfs     vlsi:/alains                 /tmp_mnt/vlsi/alains




>How-To-Repeat:
This is entirely deterministic.
>Fix:
1. hard mounts
2. leave a process sleeping in "important" directories
3. fix amd so it retries rather than giving up on the first try


>Release-Note:
>Audit-Trail:

From: Mika <mika@cs.caltech.edu>
To: freebsd-gnats-submit@freebsd.org, mika@cs.caltech.edu
Cc:  Subject: Re: bin/4714: aautomatic AMD mounts fail on first try, succeed on second
Date: Mon, 06 Oct 1997 18:21:33 -0700

 This bug shows up with a single-CPU kernel as well.

From: Mika Nystrom <mika@cs.caltech.edu>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/4714 aautomatic AMD mounts fail on first try, succeed on , second 
Date: Wed, 01 Apr 1998 03:44:32 -0800

 I have been running 3.0-current all along.  This PR should be closed,
 see kern/6189 instead.
 
    Mika
 
 Studded writes:
 >Greetings, :)
 >
 >	I am writing to you in regards to your FreeBSD Problem
 >Report. The FreeBSD project is currently conducting a beta test on
 >version 2.2.6 and feedback as to whether you are still experiencing
 >your problem would be very valuable. 
 >
 >	If you are still experiencing the problem you reported, it
 >would help the project track the problem if you could upgrade to the
 >latest snapshot of 3.0-Current (located at releng22.freebsd.org) and
 >test your problem again. 
 >
 >	If you have any feedback regarding this Problem Report,
 >whether you are still experiencing the problem or whether the PR can
 >be closed, please mail your response to
 >freebsd-gnats-submit@freebsd.org. Please do not respond directly to
 >me. I am merely a humble volunteer and have no official connection to
 >the FreeBSD project. Therefore I cannot make any changes to the status
 >of your Problem Report. It is also very important that you include 
 >the category and number of your Problem Report (bin/4714)
 >in the subject line of your response.
 >
 >	Another option if you need a refresher on the details of your
 >problem or would like to submit a followup is to use the web page
 >interface and look up your PR by number.
 >http://www.freebsd.org/cgi/query-pr-summary.cgi
 >
 >	Thank you for helping to make this the greatest release of
 >FreeBSD ever.
 >
 >Doug
 >
 >
 >-- 
 >***         Chief Operations Officer, DALnet IRC network       ***
 >*** Proud operator, designer and maintainer of the world's largest
 >*** Internet Relay Chat server.  5,328 clients and still growing.
 >*** Try spider.dal.net on ports 6662-4    (Powered by FreeBSD)
 >
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Wed Apr 1 03:51:56 PST 1998 
State-Changed-Why:  
Closed by author's request, refer to PR#6189 now instead. 
>Unformatted:
