* automount + pwd
@ 1999-04-30 4:00 Udo Grabowski
1999-04-30 4:00 ` Eric Werme - replace nospam with werme
0 siblings, 1 reply; 2+ messages in thread
From: Udo Grabowski @ 1999-04-30 4:00 UTC (permalink / raw)
Hello !
I've a problem with the mount_point of the auto_mounter. There are several
directories which I like to mount on /home and /usr/local/lsf. So I set
up the auto_master file as follows:
# auto_master
/home /imksun/auto_home -rw ....
/usr/local/lsf /imksun/auto_lsf -ro ....
The auto_home and auto_lsf files look like these two:
# auto_home
grabow imksun:/export/home2/&
...
and
# auto_lsf
bin imksun:/export/opt/local/lsf/mnt/alpha/&
....
Everything is mounted on it's place, but when I'm 'grabow' and type
a 'pwd' or do a filename inquiry in Fortran, my path appears as
'/tmp_mnt/home/grabow' instead of '/home/grabow'. Is it possible
to setup automount to use directly the specified mount points like
a static mount would do ? The -M flag does not help because there
are two different mount points.
Thanks for any help !
--
Dr. Udo Grabowski email: udo.grabowski@imk.fzk.de
Institut f. Meteorologie und Klimaforschung II, Forschungszentrum Karslruhe
Postfach 3640, D-76021 Karlsruhe, Germany Tel: (+49) 7247 82-6026
http://www-imk.fzk.de:8080/imk2/ame/grabowski/ Fax: " -6141
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: automount + pwd
1999-04-30 4:00 automount + pwd Udo Grabowski
@ 1999-04-30 4:00 ` Eric Werme - replace nospam with werme
0 siblings, 0 replies; 2+ messages in thread
From: Eric Werme - replace nospam with werme @ 1999-04-30 4:00 UTC (permalink / raw)
Udo Grabowski <udo.grabowski@imk.fzk.de> writes:
>Everything is mounted on it's place, but when I'm 'grabow' and type
>a 'pwd' or do a filename inquiry in Fortran, my path appears as
>'/tmp_mnt/home/grabow' instead of '/home/grabow'. Is it possible
>to setup automount to use directly the specified mount points like
>a static mount would do ?
Not without implementing autofs, which we'd like to do someday.
/home is what I call an "intercept point", visible if you do
"mount -e". It's an NFS mountpoint that points to a limited
NFS within automount. When you reference /home/grabow, automount
catches the reference, mounts imksun:/export/home2/grabow on
/tmp_mnt/home/grabow, then says that /home/grabow is a symbolic
link to /tmp_mnt/home/grabow.
The biggest problems with the scheme are related to things like "at"
or cron trying to cd to /tmp_mnt/home/grabow long after it's been unmounted.
Some shells (bash and ksh come to mind) implement pwd as a builtin
and will report /home/grabow, at least they will if you cd there.
You may also be able to get /home/grabow into a Fortran program by
fetching the PWD environment variable.
-Ric Werme
--
<> Eric (Ric) Werme <> The above is unlikely to contain <>
<> ROT-13 addresses: <> official claims or policies of <>
<> <jrezr@mx3.qrp.pbz> <> Compaq Computer Corp. <>
<> <jrezr@plorecbegny.arg> <> http://www.cyberportal.net/werme <>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-30 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-30 4:00 automount + pwd Udo Grabowski
1999-04-30 4:00 ` Eric Werme - replace nospam with werme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox