From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 7 10:50:13 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2781237B401 for ; Thu, 7 Aug 2003 10:50:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 063C643F85 for ; Thu, 7 Aug 2003 10:50:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h77HoBUp096459 for ; Thu, 7 Aug 2003 10:50:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h77HoBB6096457; Thu, 7 Aug 2003 10:50:11 -0700 (PDT) Resent-Date: Thu, 7 Aug 2003 10:50:11 -0700 (PDT) Resent-Message-Id: <200308071750.h77HoBB6096457@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Max Okumoto Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87AB337B401 for ; Thu, 7 Aug 2003 10:49:03 -0700 (PDT) Received: from oec-server5.ucsd.edu (oec-server5.ucsd.edu [132.239.8.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id F020A43F75 for ; Thu, 7 Aug 2003 10:49:02 -0700 (PDT) (envelope-from okumoto@oec-server5.ucsd.edu) Received: from oec-server5.ucsd.edu (localhost [127.0.0.1]) by oec-server5.ucsd.edu (8.12.6/8.12.7) with ESMTP id h77Hn2q9069628; Thu, 7 Aug 2003 10:49:02 -0700 (PDT) (envelope-from okumoto@oec-server5.ucsd.edu) Received: (from okumoto@localhost) by oec-server5.ucsd.edu (8.12.6/8.12.7/Submit) id h77Hn2ws069627; Thu, 7 Aug 2003 10:49:02 -0700 (PDT) (envelope-from okumoto) Message-Id: <200308071749.h77Hn2ws069627@oec-server5.ucsd.edu> Date: Thu, 7 Aug 2003 10:49:02 -0700 (PDT) From: Max Okumoto To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: okumoto@ucsd.edu Subject: bin/55349: Amd mixes up symlinks in it's virtual filesystem. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Max Okumoto List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 17:50:13 -0000 >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: