Date: Thu, 7 Aug 2003 10:49:02 -0700 (PDT) From: Max Okumoto <okumoto@oec-server5.ucsd.edu> To: FreeBSD-gnats-submit@FreeBSD.org Cc: okumoto@ucsd.edu Subject: bin/55349: Amd mixes up symlinks in it's virtual filesystem. Message-ID: <200308071749.h77Hn2ws069627@oec-server5.ucsd.edu> Resent-Message-ID: <200308071750.h77HoBB6096457@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55349 >Category: bin >Synopsis: Amd mixes up symlinks in it's virtual filesystem. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 07 10:50:11 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Max Okumoto >Release: FreeBSD 4.7-RELEASE-p9 i386 >Organization: Univ Calif, San Diego >Environment: System: FreeBSD oec-server5.ucsd.edu 4.7-RELEASE-p9 FreeBSD 4.7-RELEASE-p9 #0: Wed Mar 26 17:30:56 PST 2003 root@oec-server5.ucsd.edu:/usr/obj/usr/src/sys/DELL_SERVER i386 NetApp: NFS server providing user home directories. amd: am-utils version 6.0.3s1 (build 470000). >Description: Bad symlinks are presented when multiple programs try to open filesystems controlled by amd. The correct nfs filesystems are mounted but the links created in the virutal filesystem are mixed up. lrwxrwxrwx 1 root wheel 52 Aug 7 10:40 /home/dhutches -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/prog/dhutches lrwxrwxrwx 1 root wheel 48 Aug 7 10:40 /home/dstevens -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/jpr lrwxrwxrwx 1 root wheel 52 Aug 7 10:40 /home/grh -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/prog/dhutches lrwxrwxrwx 1 root wheel 48 Aug 7 10:40 /home/jlgibson -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/grh lrwxrwxrwx 1 root wheel 53 Aug 7 10:40 /home/jpr -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/jlgibson lrwxrwxrwx 1 root wheel 52 Aug 7 10:40 /home/oconnor -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/prog/dstevens lrwxrwxrwx 1 root wheel 52 Aug 6 04:28 /home/okumoto -> /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/okumoto jsoefs:/vol/vol0/unix/home/de/staff/okumoto 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/okumoto jsoefs:/vol/vol0/unix/home/de/prog/dhutches 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/prog/dhutches jsoefs:/vol/vol0/unix/home/de/staff/grh 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/grh jsoefs:/vol/vol0/unix/home/de/staff/jlgibson 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/jlgibson jsoefs:/vol/vol0/unix/home/de/staff/jpr 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/jpr jsoefs:/vol/vol0/unix/home/de/prog/dstevens 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/prog/dstevens jsoefs:/vol/vol0/unix/home/de/staff/oconnor 221987 200502 21484 90% /.amd_mnt/jsoefs/vol/vol0/unix/home/de/staff/oconnor >How-To-Repeat: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx % cat /etc/amd.conf # GLOBAL OPTIONS SECTION [ global ] browsable_dirs = no map_type = nis auto_dir = /.amd_mnt #cache_duration = 300 cache_duration = 60 # make things break faster. #debug_options = all log_file = /var/log/amd log_options = all pid_file = /var/run/amd.pid plock = yes print_pid = yes print_version = no restart_mounts = yes selectors_on_default = yes unmount_on_exit = yes # DEFINE AN AMD MOUNT POINT [ /home ] map_name = amd.home xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx % pcat amd.home /defaults opts:=dev,grpid,intr,nosuid,proto=tcp,quota,resvport,rw,soft,vers=3 dhutches type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/prog/${key} dstevens type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/prog/${key} grh type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/staff/${key} jlgibson type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/staff/${key} jpr type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/staff/${key} oconnor type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/staff/${key} okumoto type:=nfs;rhost:=jsoefs;rfs:=/vol/vol0/unix/home/de/staff/${key} xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #!/bin/sh while true; do echo XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX df -t nfs | grep jsoefs ls -l /home/ echo YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY for i in dhutches dstevens grh jlgibson jpr oconnor okumoto; do cat /home/$i/.cshrc > /dev/null & done df -t nfs | grep jsoefs for i in dhutches dstevens grh jlgibson jpr oconnor okumoto; do ls -l /home/$i done sleep 300 done exit 0 >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308071749.h77Hn2ws069627>