Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 1996 10:24:00 +0100 (MET)
From:      Thomas Graichen <graichen@omega.physik.fu-berlin.de>
To:        hackers@FreeBSD.org
Subject:   amd "-type:=direct"
Message-ID:  <199601090924.KAA16393@dirac.physik.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
can anybody running -current please test (or tell me) if the amd -type:=direct
mount works in -current (i think it should - because i checked all the files
which i've patched in 2.1.0 to get it working [thanks to doug rabson] - and
all of the patches seem to be in -current) - the test is really simple

* if your system is not configured as nfs client run

  nfsiod -n 4

* export for instance the /usr dir to yourself

  cat >> /etc/exports
  /usr localhost
  ^D

* if your system is not configured as nfs server run

  mountd; nfsd -u -t 4

* create a simple amd map

  cat > amd.direct_test
  direct_test	type:=nfs;rhost:=localhost;rfs:=/usr
  ^D

* start the amd automounter

  amd -p -x all -l /dev/stderr /direct_test amd.direct_test -type:=direct > /tmp/amd.pid

* "cd" to the automounted dir 

  cd /direct_test

  if this works everything is ok - if you get "stale nfs filehandle" it still
  does'nt work (but as described above i don't think so)

  ok now you have done the test and can remove everything made by the test

  cd back_to_the_dir_you_made_the_adm.direct_test_file
  kill -TERM `cat /tmp/amd.pid`
  rm amd.direct_test
  
  edit the /etc/exports file to remove the "/usr localhost" entry

can you please send me the result for a -current system ? 

thanks in advance 

t

p.s.: any contra's to make something like 

  amd -p ${amdflags} > /var/run/amd.pid

in /etc/rc (instead of simply amd ${amdflags}) or maybe

  amd -p -l /var/log/amd.log > /var/run/amd.pid

with the right entries in /etc/newsyslog.conf ?
  _______________________________________________________||___________________
                                                   __||
  Perfection is reached, not when there is no  __||     thomas graichen
  longer anything to add, but when there   __||    freie universitaet berlin
  is no longer anything to take away   __||           fachbereich physik
                                   __||                      
  - Antoine de Saint-Exupery - __||        graichen@mail.physik.fu-berlin.de
  ___________________________||__________________graichen@FreeBSD.org_________



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601090924.KAA16393>