Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme)
Subject: Re: automount + pwd
Date: 1999/04/30	[thread overview]
Message-ID: <7gd6ul$4mi$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 3729B10B.798D9F78@imk.fzk.de

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  <>



      reply	other threads:[~1999-04-30  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-30  4:00 automount + pwd Udo Grabowski
1999-04-30  4:00 ` Eric Werme - replace nospam with werme [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox