From alvin@Maggie.Linux-Consulting.com Wed Jan 2 19:23:43 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id TAA16023 for ; Wed, 2 Jan 2002 19:23:43 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g032rUK16492 for autofs-list; Wed, 2 Jan 2002 18:53:30 -0800 Received: from zok.sgi.com (zok.SGI.COM [204.94.215.101]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g032rTI16450 for ; Wed, 2 Jan 2002 18:53:29 -0800 Received: from rock.csd.sgi.com (fddi-rock.csd.sgi.com [130.62.69.10]) by zok.sgi.com (8.11.4/8.11.4/linux-outbound_gateway-1.1) with ESMTP id g032rTA10589 for ; Wed, 2 Jan 2002 18:53:29 -0800 Received: from piet1.csd.sgi.com (piet1.csd.sgi.com [130.62.73.47]) by rock.csd.sgi.com (SGI-8.9.3/8.9.3) with ESMTP id SAA78750; Wed, 2 Jan 2002 18:53:28 -0800 (PST) Received: (from piet@localhost) by piet1.csd.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id SAA02073; Wed, 2 Jan 2002 18:53:26 -0800 (PST) Date: Wed, 2 Jan 2002 18:53:26 -0800 From: Piet/Pete Delaney To: autofs@linux.kernel.org Cc: Piet Delaney Subject: Re: automount of / and /home filesystems Message-ID: <20020102185326.A2065@sgi.com> References: <20020102185224.A2044@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020102185224.A2044@sgi.com> User-Agent: Mutt/1.3.23i Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Is there a way to get automount to mount a filesystem that is mounted on a automounted filesystem. For Example, in my case I have / and /home exported and the automout/NFS client mounts /net// and makes the :/home directory available but it doesn't know to automount the home directory. I thought a clue could be left in the home directory to inform automount to mount the second filesystems. -piet From owner-autofs@linux.kernel.org Wed Jan 2 21:36:16 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id VAA17294 for ; Wed, 2 Jan 2002 21:36:15 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g035Dmf15019 for autofs-list; Wed, 2 Jan 2002 21:13:48 -0800 Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g035DmI15016 for ; Wed, 2 Jan 2002 21:13:48 -0800 Received: from dialup-63.212.130.76.dial1.losangeles1.level3.net ([63.212.130.76] helo=lucho.frayser.earthlink.net) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16M0CB-0002NY-00; Wed, 02 Jan 2002 21:13:41 -0800 Received: from Earthlink.NET (frayser@localhost [127.0.0.1]) by lucho.frayser.earthlink.net (8.9.3/8.6.12) with ESMTP id VAA32748; Wed, 2 Jan 2002 21:13:35 -0800 Message-ID: <3C33E87E.5040309@Earthlink.NET> Date: Wed, 02 Jan 2002 21:13:34 -0800 From: Louis Frayser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 X-Accept-Language: en-us MIME-Version: 1.0 To: Piet/Pete Delaney CC: autofs@linux.kernel.org Subject: Re: automount of / and /home filesystems References: <20020102185224.A2044@sgi.com> <20020102185326.A2065@sgi.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Hi Piet, Try this. It works for me with autofs 3.1.7 and Linux 2.4... In /etc/auto_master, enter a directive (if not already there) for /home by including the following line : /home /etc/auto_home -fstype=nfs And in /etc/auto_home, add an entry similar to this one: * lucho:/export/home/& In this the client mounts home directories form lucho:/export/home directory. Even though those home directories can appear under /net/lucho/export/home, /net isn't needed to satisfy request for directories under /home. Autofs needs to be restarted if you need to update /etc/auto_master. Updating only auto_home shouldn't require an autofs restart, provided ps shows a "automount /home file /etc/auto_home fstype=nfs" process already running. -Louis -- Piet/Pete Delaney wrote: >Is there a way to get automount to mount a filesystem that is mounted >on a automounted filesystem. For Example, in my case I have / and /home >exported and the automout/NFS client mounts /net// and makes >the :/home directory available but it doesn't know to automount >the home directory. > >I thought a clue could be left in the home directory to inform automount >to mount the second filesystems. > >-piet > > From owner-autofs@linux.kernel.org Thu Jan 3 10:42:52 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id KAA24078 for ; Thu, 3 Jan 2002 10:42:52 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g03IAHZ13637 for autofs-list; Thu, 3 Jan 2002 10:10:17 -0800 Received: from ernie.physik.uni-marburg.de (pc13154.Physik.Uni-Marburg.DE [137.248.132.86]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g03IAGI13634 for ; Thu, 3 Jan 2002 10:10:16 -0800 Received: from eger by ernie.physik.uni-marburg.de with local (Exim 3.33 #1 (Debian)) id 16MCKF-0003hL-00 for ; Thu, 03 Jan 2002 19:10:47 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Marcus Eger To: autofs@linux.kernel.org Subject: RE: disabling symlink optimization Date: Thu, 3 Jan 2002 19:10:47 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Within the above context, I've got the following question: Is it possible to *EN*able the symlink behavior instead of using bind? I have upgraded from 2.2.17 kernel to 2.4.16 and found that local mounts within the export directory are not visible on the same machine. Thanks M. Eger ##---- this is auto.master /distal /etc/auto.distal ##---- line in auto.distal ernie ernie.physik.uni-marburg.de:/local ##---- line in /etc/fstab ... /dev/hdc1 /local/rescue ext2 defaults,errors=remount-ro 0 2 ##---- here is everything ok... ernie:/# ls /local/rescue/ install lost+found ##---- this unfortunately does not work: directory content not visible - WHY? ernie:/# ls /distal/ernie/rescue ##---- this is mounted using 2.4.16 kernel ernie:/# mount ... /dev/hdc1 on /local/rescue type ext2 (rw,errors=remount-ro) ... automount(pid13200) on /distal type autofs (rw,fd=5,pgrp=13200,minproto=2,maxproto=3) /local on /distal/ernie type none (rw,bind) ##---- entries in /var/log/daemon.log: ... Jan 3 19:06:08 ernie automount[14006]: parse(sun): gathered options: rw Jan 3 19:06:08 ernie automount[14006]: parse(sun): core of entry: ernie.physik.uni-marburg.de:/local Jan 3 19:06:08 ernie automount[14006]: mount(nfs): ernie is local, doing bind Jan 3 19:06:08 ernie automount[14006]: mount(bind): calling mkdir /distal/ernie Jan 3 19:06:08 ernie automount[14006]: mount(bind): calling mount --bind /local /distal/ernie Jan 3 19:06:08 ernie automount[14006]: mount(bind): mounted /local type bind on /distal/ernie ... ##---- daemon.log used to be like that before (with 2.2.17 kernel, very similar machine): ... Jan 3 19:03:35 pc13155 automount[30387]: parse(sun): gathered options: rw Jan 3 19:03:35 pc13155 automount[30387]: parse(sun): core of entry: goofy.physik.uni-marburg.de:/local Jan 3 19:03:35 pc13155 automount[30387]: mount(nfs): goofy is local, doing bind Jan 3 19:03:35 pc13155 automount[30387]: mount(bind): symlinked /distal/goofy - > /local From owner-autofs@linux.kernel.org Thu Jan 3 10:42:52 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id KAA24078 for ; Thu, 3 Jan 2002 10:42:52 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g03IAHZ13637 for autofs-list; Thu, 3 Jan 2002 10:10:17 -0800 Received: from ernie.physik.uni-marburg.de (pc13154.Physik.Uni-Marburg.DE [137.248.132.86]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g03IAGI13634 for ; Thu, 3 Jan 2002 10:10:16 -0800 Received: from eger by ernie.physik.uni-marburg.de with local (Exim 3.33 #1 (Debian)) id 16MCKF-0003hL-00 for ; Thu, 03 Jan 2002 19:10:47 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Marcus Eger To: autofs@linux.kernel.org Subject: RE: disabling symlink optimization Date: Thu, 3 Jan 2002 19:10:47 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Within the above context, I've got the following question: Is it possible to *EN*able the symlink behavior instead of using bind? I have upgraded from 2.2.17 kernel to 2.4.16 and found that local mounts within the export directory are not visible on the same machine. Thanks M. Eger ##---- this is auto.master /distal /etc/auto.distal ##---- line in auto.distal ernie ernie.physik.uni-marburg.de:/local ##---- line in /etc/fstab ... /dev/hdc1 /local/rescue ext2 defaults,errors=remount-ro 0 2 ##---- here is everything ok... ernie:/# ls /local/rescue/ install lost+found ##---- this unfortunately does not work: directory content not visible - WHY? ernie:/# ls /distal/ernie/rescue ##---- this is mounted using 2.4.16 kernel ernie:/# mount ... /dev/hdc1 on /local/rescue type ext2 (rw,errors=remount-ro) ... automount(pid13200) on /distal type autofs (rw,fd=5,pgrp=13200,minproto=2,maxproto=3) /local on /distal/ernie type none (rw,bind) ##---- entries in /var/log/daemon.log: ... Jan 3 19:06:08 ernie automount[14006]: parse(sun): gathered options: rw Jan 3 19:06:08 ernie automount[14006]: parse(sun): core of entry: ernie.physik.uni-marburg.de:/local Jan 3 19:06:08 ernie automount[14006]: mount(nfs): ernie is local, doing bind Jan 3 19:06:08 ernie automount[14006]: mount(bind): calling mkdir /distal/ernie Jan 3 19:06:08 ernie automount[14006]: mount(bind): calling mount --bind /local /distal/ernie Jan 3 19:06:08 ernie automount[14006]: mount(bind): mounted /local type bind on /distal/ernie ... ##---- daemon.log used to be like that before (with 2.2.17 kernel, very similar machine): ... Jan 3 19:03:35 pc13155 automount[30387]: parse(sun): gathered options: rw Jan 3 19:03:35 pc13155 automount[30387]: parse(sun): core of entry: goofy.physik.uni-marburg.de:/local Jan 3 19:03:35 pc13155 automount[30387]: mount(nfs): goofy is local, doing bind Jan 3 19:03:35 pc13155 automount[30387]: mount(bind): symlinked /distal/goofy - > /local From owner-autofs@linux.kernel.org Mon Jan 7 18:16:46 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id SAA16917 for ; Mon, 7 Jan 2002 18:16:46 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g081fu332378 for autofs-list; Mon, 7 Jan 2002 17:41:56 -0800 Received: from Mail.Linux-Consulting.com ([166.90.172.6]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g081fuI32375 for ; Mon, 7 Jan 2002 17:41:56 -0800 Received: from localhost (alvin@localhost) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with SMTP id RAA16745; Mon, 7 Jan 2002 17:41:52 -0800 Date: Mon, 7 Jan 2002 17:41:52 -0800 (PST) From: To: Attila Szlovencsak cc: autofs@linux.kernel.org Subject: Re: multimap problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: hi attila not sure but i think you should try: cat /etc/auto.tmp ------------------ ftp -fstype=nfs lemma.math.bme.hu:/infosys/ftp/pub www -fstype=nfs lemma.math.bme.hu:/infosys/www ls -la /mnt/tmp/www should list your web stuff ls -la /mnt/tmp/ftp should list your ftp styff on lemma.math.bme.hu:/etc/exports ... /infosys/ftp/pub w.x.y.0(ro) /infosys/www w.x.y.0(ro0 have fun alvin On Tue, 8 Jan 2002, Attila Szlovencsak wrote: > Hi! > > I try to use the multimap feature of automount version 4.0, but even > the example given in the man page does not work. (Probably I am the > lame :-} ). > > I have some remote nfs shares like > > lemma.math.bme.hu:/infosys/ftp/pub > lemma.math.bme.hu:/infosys/www > > I create the following autofs map file > > [root@draco]# cat /etc/auto.tmp > lemma -ro /ftp lemma.math.bme.hu:/infosys/ftp/pub/ \ > /www lemma.math.bme.hu:/infosys/www/ > > And the /etc/auto.master has the following line. > /mnt/tmp /etc/auto.tmp > > In this case when trying to access the directory /mnt/tmp/lemma, I have > the following error log in /var/adm/messages: > > Jan 8 01:12:35 draco automount[788]: attempting to mount entry > /mnt/tmp/lemma > Jan 8 01:12:35 draco automount[1593]: mount(nfs): mkdir_path lemma/ftp > failed: Operation not permitted > > I use Mandrake8.0 and kernel-2.4.3. > > Any idea? > > Thx, > > Attila > From tmpatsz@lt.eth.ericsson.se Tue Jan 8 02:37:29 2002 Return-Path: Received: from albatross-ext.wise.edt.ericsson.se (albatross-ext.wise.edt.ericsson.se [194.237.142.116]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id CAA24401 for ; Tue, 8 Jan 2002 02:37:28 -0800 Received: from duna (duna.eth.ericsson.se [164.48.158.2]) by albatross.wise.edt.ericsson.se (8.11.0/8.11.0/WIREfire-1.3) with SMTP id g08AbRJ07556 for ; Tue, 8 Jan 2002 11:37:27 +0100 (MET) Received: from lt.eth.ericsson.se by duna (SMI-8.6/SMI-SVR4) id LAA02324; Tue, 8 Jan 2002 11:37:24 +0100 Sender: tmpatsz@lt.eth.ericsson.se Message-ID: <3C3ACBE4.34CE7AA6@lt.eth.ericsson.se> Date: Tue, 08 Jan 2002 11:37:24 +0100 From: Attila Szlovencsak Organization: ERICSSON HUNGARY /TRAFFICLAB X-Mailer: Mozilla 4.61 [en] (X11; I; SunOS 5.6 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: alvin@Maggie.Linux-Consulting.com Subject: Re: multimap problem References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Status: RO X-Status: Hi Alvin! Well, first of all, thank you that you deal with my problem. However, this is not the solition I want, as you simply avoided the use of multimaps. If I am not mistaken, with the configuration I presented in my previous letter, issuing a cd /mnt/tmp/lemma will automatically mount both the ftp and the www subdirectories. Saying the truth, I want to use the multimap in a program map, that helps to mount all the shared resources of a given machine by one command only. In the Solaris autofs there is special map type (-hosts) for that purpose, but I did not find anything like that in the Linux automount. Thx, Attila > cat /etc/auto.tmp > ------------------ > ftp -fstype=nfs lemma.math.bme.hu:/infosys/ftp/pub > www -fstype=nfs lemma.math.bme.hu:/infosys/www > > ls -la /mnt/tmp/www should list your web stuff > ls -la /mnt/tmp/ftp should list your ftp styff > > on lemma.math.bme.hu:/etc/exports > ... > /infosys/ftp/pub w.x.y.0(ro) > /infosys/www w.x.y.0(ro0 > > have fun > alvin -- Attila Szlovencsák - PhD Student Budapest University of Technology and Economics Ericsson Hungary - Traffic Lab mailto:Attila.Szlovencsak@eth.ericsson.se From owner-autofs@linux.kernel.org Tue Jan 8 03:37:40 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id DAA24828 for ; Tue, 8 Jan 2002 03:37:40 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g08AjKa12819 for autofs-list; Tue, 8 Jan 2002 02:45:20 -0800 Received: from malonne.lifl.fr (malonne.lifl.fr [134.206.10.29]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g08AjFI12816 for ; Tue, 8 Jan 2002 02:45:19 -0800 Received: from kerstbol.lifl.fr (kerstbol.lifl.fr [134.206.10.68]) by malonne.lifl.fr (8.9.3/jtpda-5.3.3) with ESMTP id LAA09280 ; Tue, 8 Jan 2002 11:44:50 +0100 (MET) Received: from soula by kerstbol.lifl.fr with local (Exim 3.33 #1 (Debian)) id 16NsJU-0007pO-00; Tue, 08 Jan 2002 10:12:56 +0100 From: "Julien.Soula" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15418.47108.403170.311000@kerstbol.lifl.fr> Date: Tue, 8 Jan 2002 10:12:36 +0100 To: Attila Szlovencsak Cc: Subject: Re: multimap problem In-Reply-To: References: X-Mailer: VM 6.99(+VMGod) under Emacs 20.7.2 CC: Julien.Soula@lifl.fr Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Attila Szlovencsak writes: > [...........] > In this case when trying to access the directory /mnt/tmp/lemma, I have > the following error log in /var/adm/messages: > > Jan 8 01:12:35 draco automount[788]: attempting to mount entry > /mnt/tmp/lemma > Jan 8 01:12:35 draco automount[1593]: mount(nfs): mkdir_path lemma/ftp > failed: Operation not permitted This message sound like using version 3 of autofs kernel module. Try "rmmod autofs" then "modprobe autofs4". -- Julien From owner-autofs@linux.kernel.org Wed Jan 9 05:16:20 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id FAA07343 for ; Wed, 9 Jan 2002 05:16:20 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g09CZaU17100 for autofs-list; Wed, 9 Jan 2002 04:35:36 -0800 Received: from stud.unileoben.ac.at (stud.unileoben.ac.at [193.171.87.100]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g09CZZI17097 for ; Wed, 9 Jan 2002 04:35:35 -0800 Received: from localhost (localhost [127.0.0.1]) by vscan.unileoben.ac.at (Postfix) with SMTP id 2E9ED504 for ; Wed, 9 Jan 2002 13:35:28 +0100 (CET) Received: from einstein.unileoben.ac.at (goehheim1.unileoben.ac.at [193.171.84.30]) by stud.unileoben.ac.at (Postfix) with ESMTP id 4B4FC508 for ; Wed, 9 Jan 2002 13:35:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by einstein.unileoben.ac.at (Postfix) with ESMTP id C3A56948 for ; Wed, 9 Jan 2002 13:35:24 +0100 (CET) Received: by einstein.unileoben.ac.at (Postfix, from userid 507) id F17D183E; Wed, 9 Jan 2002 13:35:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by einstein.unileoben.ac.at (Postfix) with ESMTP id ECB9954C for ; Wed, 9 Jan 2002 13:35:23 +0100 (CET) Date: Wed, 9 Jan 2002 13:35:18 +0100 (CET) From: Gregor Hlawacek X-X-Sender: Reply-To: Gregor Hlawacek To: Subject: Autofs Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS perl-11 Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I would like to know if there is maximum number of possible mounts for autofs I want to use autofs to mount and umount a large number of home dirs. So I hope there is no max. number of possible mounts reached thing in autofs. btw where can i subscribe this list? gregor - -- Gregor Hlawacek Austria http://www.unileoben.ac.at/~m9327555/ May the source be with you! This posting is 100% M$ free. Guaranteed by Tux, the friendly penguin. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Weitere Infos: siehe http://www.gnupg.org iEYEARECAAYFAjw8OQsACgkQer3X+/vN824PYwCcCoDOZi7RLCansA20cndVV/Jm CKIAn1l4HPYTwaLxdbvq5SgN+if1jEHc =ucZA -----END PGP SIGNATURE----- From owner-autofs@linux.kernel.org Wed Jan 9 09:50:41 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id JAA10434 for ; Wed, 9 Jan 2002 09:50:40 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g09HAqj11434 for autofs-list; Wed, 9 Jan 2002 09:10:52 -0800 Received: from mail.elimpex.com (cm.med.3284840540.kabelnet.net [195.202.176.92] (may be forged)) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g09HApI11431 for ; Wed, 9 Jan 2002 09:10:51 -0800 Received: from elimpex.com (peter@uschi.elimpex.lan [10.42.0.1]) by mail.elimpex.com (8.9.3/8.9.3) with ESMTP id SAA25983; Wed, 9 Jan 2002 18:10:48 +0100 Message-ID: <3C3C7998.4AD842FF@elimpex.com> Date: Wed, 09 Jan 2002 18:10:48 +0100 From: Peter Mueller Reply-To: peter.mueller@elimpex.com Organization: Elimpex X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.10 i586) X-Accept-Language: en MIME-Version: 1.0 To: Gregor Hlawacek CC: autofs@linux.kernel.org Subject: Re: Autofs References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Gregor Hlawacek wrote: > I would like to know if there is maximum number of possible mounts for > autofs I want to use autofs to mount and umount a large number of home > dirs. So I hope there is no max. number of possible mounts reached thing > in autofs. I think you should look for the limits of your kernel and nfs implementation! (To all: please correct me if I'm wrong) Bye, Peter WOTLmade -- Peter Mueller Elimpex - Medizintechnik GesmbH. Tel: +43-2236-41045-0 Fax: +43-2236-41045-9 mailto:peter.mueller@elimpex.com http://www.elimpex.com/ From owner-autofs@linux.kernel.org Wed Jan 9 19:19:20 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id TAA15520 for ; Wed, 9 Jan 2002 19:19:20 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0A2mJp09187 for autofs-list; Wed, 9 Jan 2002 18:48:19 -0800 Received: from relaydude.reardensteel.com (relaydude.rearden.com [64.160.169.119]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0A2mIg09184 for ; Wed, 9 Jan 2002 18:48:18 -0800 Received: from newmaildude.reardensteel.com (unknown [64.160.169.126]) by relaydude.reardensteel.com (Postfix) with ESMTP id 31D5A3BE25; Wed, 9 Jan 2002 18:48:08 -0800 (PST) Received: from sherkaner.reardensteel.com (sherkaner.reardensteel.com [172.17.140.61]) by newmaildude.reardensteel.com (Postfix) with ESMTP id 099773BE22; Wed, 9 Jan 2002 18:48:04 -0800 (PST) Subject: Re: Autofs From: Jeremy Fitzhardinge To: Gregor Hlawacek Cc: autofs@linux.kernel.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 09 Jan 2002 18:49:05 -0800 Message-Id: <1010630945.15328.6.camel@sherkaner.reardensteel.com> Mime-Version: 1.0 Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: On Wed, 2002-01-09 at 04:35, Gregor Hlawacek wrote: > I would like to know if there is maximum number of possible mounts for > autofs I want to use autofs to mount and umount a large number of home > dirs. So I hope there is no max. number of possible mounts reached thing > in autofs. There's a maximum of 255 or so mounted NFS filesystems. Actually, the limit is 255 "deviceless" filesystems; autofs itself is deviceless, as is each NFS filesystem. J From owner-autofs@linux.kernel.org Thu Jan 10 07:10:22 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id HAA22035 for ; Thu, 10 Jan 2002 07:10:21 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AES0N24780 for autofs-list; Thu, 10 Jan 2002 06:28:00 -0800 Received: from duck.doc.ic.ac.uk (duck.doc.ic.ac.uk [146.169.1.46]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AERxg24777 for ; Thu, 10 Jan 2002 06:28:00 -0800 Received: from kungfu.doc.ic.ac.uk ([146.169.6.1] ident=mw) by duck.doc.ic.ac.uk with esmtp (Exim 3.16 #7) id 16OgBS-0005yy-00; Thu, 10 Jan 2002 14:27:58 +0000 Date: Thu, 10 Jan 2002 14:27:58 +0000 (GMT) From: Mike Wyer To: amorelan@csc.com cc: autofs@linux.kernel.org Subject: Re: Hidden directories In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: On Thu, 10 Jan 2002 amorelan@csc.com wrote: >Hi, > >I'm having a problem with automount in that when I cd into the automount >"projects" the sub directories are hidden. >If I cd into a sub directory that I know exists "/projects/network" then it >will appear in a ls -l of projects. > >[root@linux001 /projects]# cd /projects > >[root@linux001 /projects]# ls -la >total 4 >drwxr-xr-x 2 root root 0 Jan 4 13:45 . >drwxr-xr-x 24 root root 4096 Jan 7 16:35 .. > >[root@linux001 /projects]# cd network > >[root@linux001 network]# cd .. > >[root@linux001 /projects]# ls -l >total 4 >drwxrwxr-x 31 root bin 4096 May 10 2001 network > >I tried using the latest version of Redhat (7.2) but I'm still getting the >same problem. I've just found out that HPUX has the same problem. I've >found a script that mounts the directories manually but it seems a bit >messy. Is there a fix for this? Why are you using an automounter if you want all the directories to be there all the time? The whole point of autofs is that it only mounts the subdirectories when they are accessed. It is non-trivial to provide a stub entry for all the possible subdirectories, so you'll have to get used to the fact that automounts don't appear until they are accessed. It's one of the more common complaints we get from new users: "/vol/bitbucket isn't there on my machine!" "Try cd'ing into it" "Oohhh." But people get used to it pretty quickly. Cheers, Mike -- Mike Wyer Systems Programmer Computing Support Group, Computing Department, Imperial College http://www.doc.ic.ac.uk/ From owner-autofs@linux.kernel.org Thu Jan 10 07:17:09 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id HAA22070 for ; Thu, 10 Jan 2002 07:17:09 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AET9v25220 for autofs-list; Thu, 10 Jan 2002 06:29:09 -0800 Received: from web4.bisping.net (web4.bisping.net [62.157.236.12]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AET7g25217 for ; Thu, 10 Jan 2002 06:29:08 -0800 Received: from lexx.darkzone (p2priv-lauf-pmx1-89.dialin.bisping.net [62.91.97.89]) by web4.bisping.net (8.11.0/8.11.0) with ESMTP id g0AETFt23306; Thu, 10 Jan 2002 15:29:16 +0100 Received: from localhost (localhost [[UNIX: localhost]]) by lexx.darkzone (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) id g0AETd511255; Thu, 10 Jan 2002 15:29:39 +0100 Message-Id: <200201101429.g0AETd511255@lexx.darkzone> Content-Type: text/plain; charset="iso-8859-1" From: Jochen Reinwand To: amorelan@csc.com, autofs@linux.kernel.org Subject: Re: Hidden directories Date: Thu, 10 Jan 2002 15:29:39 +0100 X-Mailer: KMail [version 1.3.2] References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Hi, It's at the moment not possible to make not existing mounts visible. This would only be possible by mounting them and then you don't need automount at all. Perhaps a "hack" that makes the directories visible, will be included in future releases. See also autofs-4.0.0pre10/TODO: autofs v5 TODO list ------------------- * visible mountpoints If you want the feature now, you have to install Solaris on your machines ;-) Or you can use the BSD automounter amd... Jochen On Thursday, 10. January 2002 13:25, amorelan@csc.com wrote: > Hi, > > I'm having a problem with automount in that when I cd into the automount > "projects" the sub directories are hidden. > If I cd into a sub directory that I know exists "/projects/network" then it > will appear in a ls -l of projects. > > [root@linux001 /projects]# cd /projects > > [root@linux001 /projects]# ls -la > total 4 > drwxr-xr-x 2 root root 0 Jan 4 13:45 . > drwxr-xr-x 24 root root 4096 Jan 7 16:35 .. > > [root@linux001 /projects]# cd network > > [root@linux001 network]# cd .. > > [root@linux001 /projects]# ls -l > total 4 > drwxrwxr-x 31 root bin 4096 May 10 2001 network > > I tried using the latest version of Redhat (7.2) but I'm still getting the > same problem. I've just found out that HPUX has the same problem. I've > found a script that mounts the directories manually but it seems a bit > messy. Is there a fix for this? > > Regards > Alan Moreland From owner-autofs@linux.kernel.org Thu Jan 10 07:39:23 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id HAA22671 for ; Thu, 10 Jan 2002 07:39:23 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AF7Xn00929 for autofs-list; Thu, 10 Jan 2002 07:07:33 -0800 Received: from missioncriticallinux.com (mail.missioncriticallinux.com [208.51.139.18]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AF7Wg00926 for ; Thu, 10 Jan 2002 07:07:32 -0800 Received: from mclinux.com (localhost [127.0.0.1]) by missioncriticallinux.com (8.9.3/8.9.3) with ESMTP id KAA07998; Thu, 10 Jan 2002 10:07:26 -0500 Message-Id: <200201101507.KAA07998@missioncriticallinux.com> X-Mailer: exmh version 2.4 10/15/1999 with nmh-1.0.3 X-face: -3FL)\a9]p1*{&TA|(w!&ebZH+5D7{fH!_Hj`9^PVlbxHH%~+On#w\+}e={Y$(+8Z.n*_mov6R[#QIyt%Fh To: amorelan@csc.com cc: autofs@linux.kernel.org Reply-to: pll@mclinux.com Subject: Re: Hidden directories References: In-reply-to: Your message of "Thu, 10 Jan 2002 12:25:16 GMT." Date: Thu, 10 Jan 2002 10:07:26 -0500 From: Paul Lussier Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: In a message dated: Thu, 10 Jan 2002 12:25:16 GMT amorelan@csc.com said: >Hi, > >I'm having a problem with automount in that when I cd into the automount >"projects" the sub directories are hidden. >If I cd into a sub directory that I know exists "/projects/network" then it >will appear in a ls -l of projects. This is not a "problem" but normal behavior of automount. /projects is a mount point. Until something is mounted, it does not exist on a client machine, and therefore, you can't see it with ls. When you 'cd' into it, the OS intercepts your command, passes it off to automount, which then locates the appropriate file system in the auto.* maps, and NFS mounts the file system for you in the /projects directory by doing the equivalent of: mkdir /projects/network mount -t nfs server:/network /projects/network When the "automount" time out is incurred, it cleans up after itself by doing the equivalent of: umount /projects/network rmdir /projects/network If you need to know what's "available" under the /projects directory, you need to know which auto. map this information is kept in. If you're running NIS, then use the ypmatch/ypcat commands on the auto. maps. If you use local files, then grep through the /etc/auto.* maps. HTH, -- Seeya, Paul ---- God Bless America! ...we don't need to be perfect to be the best around, and we never stop trying to be better. Tom Clancy, The Bear and The Dragon From owner-autofs@linux.kernel.org Thu Jan 10 09:23:58 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id JAA23489 for ; Thu, 10 Jan 2002 09:23:58 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AGlaP23275 for autofs-list; Thu, 10 Jan 2002 08:47:36 -0800 Received: from metten.fenk.wau.nl (metten.fenk.wau.nl [137.224.129.4]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AGlXg23272 for ; Thu, 10 Jan 2002 08:47:33 -0800 Received: from there (oever@pc172.fenk.wau.nl [137.224.129.172]) by metten.fenk.wau.nl (8.9.1a/8.9.1) with SMTP id RAA12278 for ; Thu, 10 Jan 2002 17:47:31 +0100 (MET) Message-Id: <200201101647.RAA12278@metten.fenk.wau.nl> Content-Type: text/plain; charset="iso-8859-1" From: Jos van den Oever Organization: Wageningen-UR To: autofs@linux.kernel.org Subject: Re: Hidden directories Date: Thu, 10 Jan 2002 17:47:37 +0100 X-Mailer: KMail [version 1.3.1] References: <200201101429.g0AETd511255@lexx.darkzone> In-Reply-To: <200201101429.g0AETd511255@lexx.darkzone> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Transfer-Encoding: 8bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: On Thursday 10 January 2002 15:29, you wrote: > Hi, > > It's at the moment not possible to make not existing mounts visible. This > would only be possible by mounting them and then you don't need automount > at all. > Perhaps a "hack" that makes the directories visible, will be included in > future releases. > See also autofs-4.0.0pre10/TODO: > > autofs v5 TODO list > ------------------- > * visible mountpoints > > If you want the feature now, you have to install Solaris on your machines > ;-) Or you can use the BSD automounter amd... On a slightly different subject, I can imagine that for integration with windows/smb networks a special version of automount would be very useful. At the moment there are various GUI implementations of a 'Network Neighbourhood'. I've been thinking about a more low-level equivalent of this, using automount-like functionality. Under a folder '/network neighborhood' or '/smb', the various hosts could be listed, as folders. This information would be gotten from the libsmbclient or by scanning port 139 of a range of hosts. Then each host would have a directory for each of it's shares under it's own directory. In this scenario, considering only anonymous shares, a list of all submount (hostnames or sharenames) would need to be available before mounting them. This means the information for statting the mountpoints should be obtained from libsmbclient, without actually mounting. Only upon entering, not statting, a directory corresponding to a share, would mounting take place. So, for this scheme a daemon similar to automount would be needed, but with extra functionality from libsmbclient. Automount intercepts access to certain directories on a kernel level. The smbclientdaemon would need this functionality too. Would this interfere with automount? or in other words, would the functionality need to be added to automount or could a client like this live on its own? Concluding, I need to mention that this is just a fancy idea of mine, and that I do not have the knowledge of the linux kernel, automount and libsmbclient to implement something like this quickly/at all. Best regards, Jos van den Oever From owner-autofs@linux.kernel.org Thu Jan 10 09:30:32 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id JAA23862 for ; Thu, 10 Jan 2002 09:30:32 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AGwCx25729 for autofs-list; Thu, 10 Jan 2002 08:58:12 -0800 Received: from ernie.physik.uni-marburg.de (pc13154.Physik.Uni-Marburg.DE [137.248.132.86]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AGwBg25726 for ; Thu, 10 Jan 2002 08:58:11 -0800 Received: from eger by ernie.physik.uni-marburg.de with local (Exim 3.33 #1 (Debian)) id 16OiWn-0001tt-00 for ; Thu, 10 Jan 2002 17:58:09 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Marcus Eger To: autofs@linux.kernel.org Subject: local mounts not visible (kernel 2.4.16) Date: Thu, 10 Jan 2002 17:58:08 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Hi list, I have upgraded from 2.2.17 kernel to 2.4.16 and found that local mounts within the export directory are not visible on the same machine anymore. It seems to have to do with the new feature: bind instead of symlinks. Thanks for any hints - Marcus ##---- this is auto.master /distal /etc/auto.distal ##---- line in auto.distal ernie ernie.physik.uni-marburg.de:/local ##---- line in /etc/fstab ... /dev/hdc1 /local/rescue ext2 defaults,errors=remount-ro 0 2 ##---- here is everything ok... ernie:/# ls /local/rescue/ install lost+found ##---- this unfortunately does not work: directory content not visible - WHY? ernie:/# ls /distal/ernie/rescue ##---- this is mounted using 2.4.16 kernel ernie:/# mount ... /dev/hdc1 on /local/rescue type ext2 (rw,errors=remount-ro) ... automount(pid13200) on /distal type autofs (rw,fd=5,pgrp=13200,minproto=2,maxproto=3) /local on /distal/ernie type none (rw,bind) ##---- entries in /var/log/daemon.log: ... Jan 3 19:06:08 ernie automount[14006]: parse(sun): gathered options: rw Jan 3 19:06:08 ernie automount[14006]: parse(sun): core of entry: ernie.physik.uni-marburg.de:/local Jan 3 19:06:08 ernie automount[14006]: mount(nfs): ernie is local, doing bind Jan 3 19:06:08 ernie automount[14006]: mount(bind): calling mkdir /distal/ernie Jan 3 19:06:08 ernie automount[14006]: mount(bind): calling mount --bind /local /distal/ernie Jan 3 19:06:08 ernie automount[14006]: mount(bind): mounted /local type bind on /distal/ernie ... ##---- daemon.log used to be like that before (with 2.2.17 kernel, very similar machine): ... Jan 3 19:03:35 pc13155 automount[30387]: parse(sun): gathered options: rw Jan 3 19:03:35 pc13155 automount[30387]: parse(sun): core of entry: goofy.physik.uni-marburg.de:/local Jan 3 19:03:35 pc13155 automount[30387]: mount(nfs): goofy is local, doing bind Jan 3 19:03:35 pc13155 automount[30387]: mount(bind): symlinked /distal/goofy - > /local -- +------------------------------------------------------- | Dr.-Ing. Marcus Eger | Philipps Universitaet Marburg | Fachbereich Physik AG Neurophysik | Renthof 7 | 35032 Marburg | Tel. ++49 +6421 282-4169 | Fax ++49 +6421 282-7034 +-------- ><> ------------------------------------------- | E-Mail: eger.m@gmx.de (NEW) | marcus.eger@physik.uni-marburg.de (OLD) | WWW: http://neuro.physik.uni-marburg.de/~eger (NEW) +-------------------------------------------------------- From owner-autofs@linux.kernel.org Thu Jan 10 11:11:24 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id LAA24807 for ; Thu, 10 Jan 2002 11:11:24 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AIbAA14962 for autofs-list; Thu, 10 Jan 2002 10:37:10 -0800 Received: from moleng.ucsc.edu (moleng.ucsc.edu [128.114.41.86]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AIb9g14959 for ; Thu, 10 Jan 2002 10:37:09 -0800 Received: from chemistry.ucsc.edu (alsvoice.ucsc.edu [128.114.41.238]) by moleng.ucsc.edu (8.11.4/8.11.4) with ESMTP id g0AIawe17340; Thu, 10 Jan 2002 10:36:58 -0800 Message-ID: <3C3DDF44.D73A98BE@chemistry.ucsc.edu> Date: Thu, 10 Jan 2002 10:36:52 -0800 From: Rich McClellan X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Mike Wyer CC: amorelan@csc.com, autofs@linux.kernel.org Subject: Re: Hidden directories References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Mike Wyer wrote: [------ %< snip snip %< -------------] > > It's one of the more common complaints we get from new users: > "/vol/bitbucket isn't there on my machine!" > "Try cd'ing into it" > "Oohhh." > > But people get used to it pretty quickly. > IMO, expecting users to navigate a file system in the dark is a **huge** deficiency in usability. If it is technically possible to fix this problem it should be done. One way I've worked around this stupid behavior is to make a symbolic link to a top level directory. For example, research directories are auto mounted in /res. User's have a symbolic link from /res/ to /home//research. When they do a directory listing in /home/ they see the directory "research" along with everything else. Application programs that are shared cluster wide are mounted in the same way so that curious users, who have no idea about 'ypcat -k auto.misc', can browse the filesystem and discover software. my $0.02 worth, Rich From owner-autofs@linux.kernel.org Thu Jan 10 15:20:01 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id PAA27866 for ; Thu, 10 Jan 2002 15:20:01 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0AMfsD05006 for autofs-list; Thu, 10 Jan 2002 14:41:54 -0800 Received: from neon-gw.transmeta.com (neon-gw-l3.transmeta.com [63.209.4.196]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0AMfrg05003 for ; Thu, 10 Jan 2002 14:41:53 -0800 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id OAA06440; Thu, 10 Jan 2002 14:41:48 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma006425; Thu, 10 Jan 02 14:41:29 -0800 Received: from cesium.transmeta.com (cesium.transmeta.com [10.10.25.41]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id g0AMfXS01029; Thu, 10 Jan 2002 14:41:33 -0800 (PST) Received: from zytor.com (hpa@localhost.localdomain [127.0.0.1]) by cesium.transmeta.com (8.9.3/8.7.3) with ESMTP id OAA31424; Thu, 10 Jan 2002 14:41:33 -0800 Message-ID: <3C3E189C.9080802@zytor.com> Date: Thu, 10 Jan 2002 14:41:32 -0800 From: "H. Peter Anvin" Organization: Zytor Communications User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en, sv MIME-Version: 1.0 To: Rich McClellan CC: Mike Wyer , amorelan@csc.com, autofs@linux.kernel.org Subject: Re: Hidden directories References: <3C3DDF44.D73A98BE@chemistry.ucsc.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Rich McClellan wrote: > > IMO, expecting users to navigate a file system in the dark is a **huge** > deficiency in usability. If it is technically possible to fix this > problem it should be done. > It is, but it is *EXTREMELY* painful... it pretty much requires not only a gutting of the entire autofs, but also core kernel changes. It is on the map for the autofs v5 which is meant to be a complete rewrite; it will also require Al Viro's VFS changes planned for v2.5. Until then, it's not going to happen. -hpa From owner-autofs@linux.kernel.org Thu Jan 10 19:39:15 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id TAA30291 for ; Thu, 10 Jan 2002 19:39:15 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0B37uF31271 for autofs-list; Thu, 10 Jan 2002 19:07:56 -0800 Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0B37tg31268 for ; Thu, 10 Jan 2002 19:07:55 -0800 Received: from user-33qt3r5.dialup.mindspring.com ([199.174.143.101] helo=there) by smtp10.atl.mindspring.net with smtp (Exim 3.33 #1) id 16Os2m-0003rv-00; Thu, 10 Jan 2002 22:07:49 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Todd Shoemaker To: pll@mclinux.com, amorelan@csc.com Subject: Re: Hidden directories Date: Thu, 10 Jan 2002 21:02:14 -0600 X-Mailer: KMail [version 1.3.1] Cc: autofs@linux.kernel.org References: <200201101507.KAA07998@missioncriticallinux.com> In-Reply-To: <200201101507.KAA07998@missioncriticallinux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: On Thursday 10 January 2002 09:07 am, Paul Lussier wrote: > In a message dated: Thu, 10 Jan 2002 12:25:16 GMT > > amorelan@csc.com said: > >Hi, > > > >I'm having a problem with automount in that when I cd into the automount > >"projects" the sub directories are hidden. > >If I cd into a sub directory that I know exists "/projects/network" then > > it will appear in a ls -l of projects. > > This is not a "problem" but normal behavior of automount. /projects > is a mount point. Until something is mounted, it does not exist on a > client machine, and therefore, you can't see it with ls. When you > 'cd' into it, the OS intercepts your command, passes it off to > automount, which then locates the appropriate file system in the > auto.* maps, and NFS mounts the file system for you in the /projects > directory by doing the equivalent of: > > mkdir /projects/network > mount -t nfs server:/network /projects/network > > When the "automount" time out is incurred, it cleans up after itself > by doing the equivalent of: > > umount /projects/network > rmdir /projects/network > > If you need to know what's "available" under the /projects directory, > you need to know which auto. map this information is kept in. > > If you're running NIS, then use the ypmatch/ypcat commands on the > auto. maps. If you use local files, then grep through the /etc/auto.* > maps. > > HTH, Paul- Are there any docs available to explain how the OS intercepts this, and moreover, how does it inform autofs that some file under /mnt/autofloppy has been requested? It seems like if the kernel can tell autofs that /mnt/autofloppy is needed, all autofs needs to be is small program that basically does this: if not already mounted then mount /mnt/autofloppy else restart umount counter (umount counter event handler) umount /mnt/autofloppy restart counter if failed Assuming that /mnt/autofloppy has an entry in fstab. I've often wondered why autofs has so much code when mount & umount already do all of this, and it seems like autofs should be just a thin wrapper to call them. I'm sure there is a good technical reason for the extra code and extra complexity. I still have to rely on a rote script in order to successfully set up a simple floppy or cdrom automount that is visible from a GUI. As a matter of fact, the last time was so painful that I swore that I would join this list just to see if I could learn enough about the concept to write a simple automounter that just used the fstab entries and mounted plain mount points, so hopefully distros will begin shipping with automounted drives by default. By relying on mount/fstab, the auto.conf would look like this: /mnt/cdrom 10 /mnt/floppy 2 Or even add them as mount options in fstab and remove the config file altogether: /dev/cdrom /mnt/cdrom iso9660 noauto,ro,automount=10 0 0 Of course, I'm sure autofs would be more appropriate in more advanced cases; I'm just referring to local removable drives here. What would it take to do this? In addition to the autofs source, do you know of any other resources that I can refer to? TIA, -Todd From owner-autofs@linux.kernel.org Thu Jan 10 23:25:57 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id XAA32475 for ; Thu, 10 Jan 2002 23:25:57 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0B6lGd15290 for autofs-list; Thu, 10 Jan 2002 22:47:16 -0800 Received: from neon-gw.transmeta.com (neon-gw-l3.transmeta.com [63.209.4.196]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0B6lGg15287 for ; Thu, 10 Jan 2002 22:47:16 -0800 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id WAA06726; Thu, 10 Jan 2002 22:47:08 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma006722; Thu, 10 Jan 02 22:47:01 -0800 Received: from tazenda.transmeta.com (tazenda.transmeta.com [10.8.42.16]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id g0B6l7S07951; Thu, 10 Jan 2002 22:47:07 -0800 (PST) Received: from zytor.com (hpa@localhost [127.0.0.1]) by tazenda.transmeta.com (8.9.3/8.7.3) with ESMTP id WAA22971; Thu, 10 Jan 2002 22:47:07 -0800 Message-ID: <3C3E8A6B.8070500@zytor.com> Date: Thu, 10 Jan 2002 22:47:07 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us, en, sv MIME-Version: 1.0 To: Todd Shoemaker CC: pll@mclinux.com, amorelan@csc.com, autofs@linux.kernel.org Subject: Re: Hidden directories References: <200201101507.KAA07998@missioncriticallinux.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Todd Shoemaker wrote: > > Assuming that /mnt/autofloppy has an entry in fstab. I've often wondered why > autofs has so much code when mount & umount already do all of this, and it > seems like autofs should be just a thin wrapper to call them. I'm sure there > is a good technical reason for the extra code and extra complexity. > That's basically what it already is. However, it isn't so easy when you take into account race conditions, and having to suspend processes etc. etc. -hpa From owner-autofs@linux.kernel.org Fri Jan 11 07:21:09 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id HAA03678 for ; Fri, 11 Jan 2002 07:21:09 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0BEfCU13501 for autofs-list; Fri, 11 Jan 2002 06:41:12 -0800 Received: from missioncriticallinux.com (mail.missioncriticallinux.com [208.51.139.18]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0BEfBg13498 for ; Fri, 11 Jan 2002 06:41:11 -0800 Received: from mclinux.com (localhost [127.0.0.1]) by missioncriticallinux.com (8.9.3/8.9.3) with ESMTP id JAA11055; Fri, 11 Jan 2002 09:40:55 -0500 Message-Id: <200201111440.JAA11055@missioncriticallinux.com> X-Mailer: exmh version 2.4 10/15/1999 with nmh-1.0.3 X-face: -3FL)\a9]p1*{&TA|(w!&ebZH+5D7{fH!_Hj`9^PVlbxHH%~+On#w\+}e={Y$(+8Z.n*_mov6R[#QIyt%Fh To: Todd Shoemaker cc: amorelan@csc.com, autofs@linux.kernel.org Reply-to: pll@mclinux.com Subject: Re: Hidden directories References: <200201101507.KAA07998@missioncriticallinux.com> In-reply-to: Your message of "Thu, 10 Jan 2002 21:02:14 CST." Date: Fri, 11 Jan 2002 09:40:55 -0500 From: Paul Lussier Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: In a message dated: Thu, 10 Jan 2002 21:02:14 CST Todd Shoemaker said: >Paul- > >Are there any docs available to explain how the OS intercepts this, and >moreover, how does it inform autofs that some file under /mnt/autofloppy has >been requested? You might try the O'Reilly NFS/NIS book, though it's terribly outdated by now, and very SunOS 4.x specific. The man pages might help also, I don't know. I understand the concepts, though I don't know where I learned them from to be honest, years of just dealing with it I guess :) If you're up to it, "Use the source, Luke!" :) >It seems like if the kernel can tell autofs that /mnt/autofloppy is needed, > all autofs needs to be is small program that basically does this: Well, as hpa said, that's what it basically is, except it's not a shell script, it's a C program running as a daemon, and there's a lot more security based code than there probably is "automount" code. It seems like the amount of code that goes into solving any given problem is quickly outweighed by all the extra crap you need to account for "in case the sh*t hits the fan" :) If this were a perfect world, there would be far less code required to "account for wierd but common situation X" and a lot more code "solving problem Y"! >Of course, I'm sure autofs would be more appropriate in more advanced cases; >I'm just referring to local removable drives here. I've never used automounter for local drives. I don't know why. It's always just seemed easier for me to say: mount /floppy or mount /cdrom and umount /floppy I think it comes from my nightmarish experiences of trying to use floppy disks under early releases of Solaris 2.x :) >What would it take to do this? In addition to the autofs source, do you know >of any other resources that I can refer to? Not really. Sorry, as I said, I know the concepts, but not the finer details (which is why I'm on this list :) -- Seeya, Paul ---- God Bless America! ...we don't need to be perfect to be the best around, and we never stop trying to be better. Tom Clancy, The Bear and The Dragon From owner-autofs@linux.kernel.org Fri Jan 11 07:32:13 2002 Return-Path: Received: from hera.kernel.org (IDENT:root@hera.kernel.org [64.158.222.226]) by Mail.Linux-Consulting.com (8.9.3/8.9.3) with ESMTP id HAA04075 for ; Fri, 11 Jan 2002 07:32:13 -0800 Received: (from majordom@localhost) by hera.kernel.org (8.11.6/8.11.6) id g0BEs6P16349 for autofs-list; Fri, 11 Jan 2002 06:54:06 -0800 Received: from pony-express2 (ponyexpress2.csc.com [208.219.64.201]) by hera.kernel.org (8.11.6/8.11.6) with ESMTP id g0BEs5g16296; Fri, 11 Jan 2002 06:54:05 -0800 Received: from csc.com (va-fch31.csc.com [20.1.107.9]) by pony-express2.csc.com (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GPS00F0D3N0QR@pony-express2.csc.com>; Fri, 11 Jan 2002 09:45:00 -0500 (EST) Date: Fri, 11 Jan 2002 14:51:25 +0000 From: amorelan@csc.com Subject: Re: Hidden directories To: Rich McClellan Cc: autofs@linux.kernel.org, Mike Wyer , owner-autofs@linux.kernel.org Message-id: MIME-version: 1.0 X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-MIMETrack: Serialize by Router on VA-FCH31/SRV/CSC(Release 5.0.4a |July 24, 2000) at 01/11/2002 09:57:01 AM Sender: owner-autofs@linux.kernel.org Precedence: bulk Status: RO X-Status: Thanks for the info. I'm from a Solaris background so that's why I didn't realise that hidden directories are a "feature" of Linux. Looks like I'm going to have to grin and bear it! Regards Alan Rich McClellan To: Mike Wyer