>From [EMAIL PROTECTED]  Thu Feb 15 01:20:57 2001
>Return-Path: <[EMAIL PROTECTED]>
Received: from hera.kernel.org (IDENT:[EMAIL PROTECTED] [209.10.217.83])
        by gateway.camelot.jp (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id BAA24017
        for <[EMAIL PROTECTED]>; Thu, 15 Feb 2001 01:20:55 +0900
Received: (from majordom@localhost)
        by hera.kernel.org (8.9.3/8.9.3) id HAA19999
        for autofs-list; Wed, 14 Feb 2001 07:38:47 -0800
Received: from mailserver1.hrz.tu-darmstadt.de ([EMAIL PROTECTED] 
[130.83.126.41])
        by hera.kernel.org (8.9.3/8.9.3) with ESMTP id HAA19996
        for <[EMAIL PROTECTED]>; Wed, 14 Feb 2001 07:38:45 -0800
Received: from nets1.vlsi.informatik.tu-darmstadt.de 
(nets1.vlsi.informatik.tu-darmstadt.de [130.83.31.101])
        by mailserver1.hrz.tu-darmstadt.de (8.9.1a/8.9.1) with ESMTP id QAA10483
        for <[EMAIL PROTECTED]>; Wed, 14 Feb 2001 16:38:56 +0100 (MET)
Received: from iss.tu-darmstadt.de (steffen@linpc17 [130.83.31.207])
        by nets1.vlsi.informatik.tu-darmstadt.de (8.9.2/8.9.2) with ESMTP id QAA26821;
        Wed, 14 Feb 2001 16:38:41 +0100 (MET)
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 14 Feb 2001 16:38:42 +0100
From: Steffen Klupsch <[EMAIL PROTECTED]>
Organization: TU Darmstadt, Integrierte Schaltungen und Systeme
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14 i686)
X-Accept-Language: German, de, en
MIME-Version: 1.0
CC: [EMAIL PROTECTED],
  Steffen <[EMAIL PROTECTED]>
Subject: Re: automount fails on automount requests
References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: [EMAIL PROTECTED]
Precedence: bulk
Status: O
Content-Length: 1724
Lines: 53

I joint the mail list, but I don't get copies of the list yet. Please do 
"CC" my email address in replies.

Julien hinted that my last posting is strange. I try to reformulate my problem.

Our sys admin exports NIS maps in amd format. I wrote a small perl script to
convert these maps into autofs commands. The result is of the form of
the following script:

##script auto.vlsi ##
local   -rw,bg,rsize=8192,wsize=16384   nets1:/iss/local1 
Linux                                   :/vlsi/local/Linux


I use the perl script to produce the entries OnTheFly, but the bug is the same
in the above example.

This script is used by the automount daemon to mount
/vlsi/local whenever it is needed. 
But /vlsi/all is only mountable if /vlsi/local/share exists already.

"Julien.Soula" wrote:
> What the action of key "Linux" ? Is it NFS mount or symplink ?
Hmm.. A symlink is what I want, but I don't know what happens..

> Because, in fact, key "Linux" must not try to actually mount
> "/vlsi/local/Linux" but just acces it to force autmounter to mount it.

Yes! If you can tell me how to access /vlsi/local/Linux from within the perl
script, I am happy. 

I tried a 'chdir /vlsi/local/Linux':
- if the script is called as stand-alone script, this access causes the
  directory to be mounted.
- if the script is called from within the automount process, an error
  'directory not found' is produced.

> Is the automounter safe for reentrance ?

:-) Is it?

I have two solutions to my problem in mind:
- changing the output of the script to cause the automounter to mount 
/vlsi/local first
- forcing an access to /vlsi/local to do the same.

I was unable to do any of above. 
Any hint would be gratefully accepted :-)

Steffen


PS: No, I don't use DOS SMP boxes.

Reply via email to