SUMMARY: shared automount problem

From: Paul Dourish (Dourish@europarc.xerox.com)
Date: Sat Nov 16 1991 - 14:59:22 CST


A couple of weeks ago, I asked if anyone could help me out with my
automounter problems. Basically, various applications seem to get
confused when I'm using shared mounts.

The problem seems to be that some applications presume that, when
presented with an automounted path of the form /tmp_mnt/foo/bar/baz,
they can remove the /tmp_mnt to get the logical filename.
Unfortunately, this isn't true with shared mounts.

Some people suggested using amd instead, although in these cases we
still have the same behaviour. Others suggested that mount timeouts
were the root of the problem, but these mounts are still active. Some
people suggested aliasing pwd, although this doesn't really help when
getwd() is called.

However, there did seem to be a concensus that shared mounts aren't a
big win, so to revert to standard entries in the table will be fine.
That's what I'll do to get around my problem.

One other useful response, from Mike Fuller <mikef@kristen.lerc.nasa.gov>
included a patch for the emacs library files.el, to get around the
problem. It's included below.

                                                  -- jpd.

--
Paul Dourish, Rank Xerox EuroPARC, Cambridge, UK   <dourish@europarc.xerox.com>

"Ain't they got no barbers where you come from, boy?"

---- *** files.el.orig Wed Aug 28 11:28:13 1991 --- files.el Mon Aug 26 18:04:01 1991 *************** *** 236,243 **** The buffer is not selected, just returned to the caller." (setq filename (expand-file-name filename)) ;; Get rid of the prefixes added by the automounter. ! (if (string-match "^/tmp_mnt/" filename) ! (setq filename (substring filename (1- (match-end 0))))) (if (file-directory-p filename) (if find-file-run-dired (dired-noselect filename) --- 236,244 ---- The buffer is not selected, just returned to the caller." (setq filename (expand-file-name filename)) ;; Get rid of the prefixes added by the automounter. ! ;; Whoever did this should be shot -- mjf. ! ;; (if (string-match "^/tmp_mnt/" filename) ! ;; (setq filename (substring filename (1- (match-end 0))))) (if (file-directory-p filename) (if find-file-run-dired (dired-noselect filename)



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:16 CDT