autofs mounts fs even when not requested/required

From: <emanuele.lombardi_at_casaccia.enea.it>
Date: Tue, 16 Jan 2001 19:15:10 +0100 (CET)

Hi, I finally went to 5.1 and tried autofs instead of automount which
gives me a lot of troubles.

I mount foreign fs on my / dir in such a way that the mountpoint is the
name of the machine which exports the data

eg:

/dafne is the mount point of data exported from host dafne
/venus is the mount point of data exported from host venus

with automount if I do /bin/ls /
I simply see the files and the link under /
If the foreign file systems are not currently mounted I don't see them,
nor is requested their mount.

BUT

with autofs each time I do /bin/ls /
each of the foreign file systems listed in /etc/auto.direct
is automatically mounted.

I don't want that, since If I need to give a look onto a specific file
system I simply do it explicitally
(eg: /bin/ls /dafne )

Is that the right autofs behavour or am I missing something ?

In /etc/rc.config.common I now have has follow:

AUTOMOUNT_ARGS="-f /etc/auto.master"
AUTOFSMOUNT_ARGS="-m -f /etc/auto.master"
AUTOMOUNT="0"
AUTOFS="1"

while I left /etc/auto.master and /etc/auto.direct exactely the same as
they were for autodirect

Thank you very much for any help,

Ciao from Italy

Emanuele



-- 
$$$ Emanuele Lombardi
$$$ mail:  AMB-GEM-CLIM ENEA Casaccia
$$$        I-00060 S.M. di Galeria (RM)  ITALY
$$$ mailto:emanuele.lombardi_at_casaccia.enea.it
$$$ tel	+39 06 30483366 fax	+39 06 30483591
$$$
$$$                                |||
$$$                                \|/  ;_;
$$$ What does a process need        |   /"\
$$$ to become a daemon ?            |   \v/
$$$                                 |    | 
$$$ - a fork                        o---/!\---
$$$                                 |   |_|
$$$                                 |  _/ \_
$$$* Contrary to popular belief, UNIX is user friendly.
$$$  It's just very particular about who it makes friends with.
$$$* Computers are not intelligent, but they think they are. 
$$$* True programmers never die, they just branch to an odd address
$$$* THIS TRANSMISSION WAS MADE POSSIBLE BY 100% RECYCLED ELECTRONS
Received on Tue Jan 16 2001 - 18:16:53 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT