xfs
[Top] [All Lists]

BUG 819118 - pwd on sun NFS client does not return entire path

To: nb@xxxxxxx
Subject: BUG 819118 - pwd on sun NFS client does not return entire path
From: pv@xxxxxxxxxxxxx (tbd@xxxxxxx)
Date: Mon, 26 Mar 2001 11:38:38 -0800 (PST)
Cc: linux-xfs@xxxxxxxxxxx
Reply-to: sgi.bugs.xfs@xxxxxxxxxxxxxxxxx
Sender: owner-linux-xfs@xxxxxxxxxxx
Webexec: webpvsubmit,PvProjectIncident
Webpv: fsgi158.americas.sgi.com
View Incident: 
http://co-op.engr.sgi.com/BugWorks/code/bwxquery.cgi?search=Search&wlong=1&view_type=Bug&wi=819118

Submitter : tbd                       Submitter Domain : sgi.com            
Assigned Engineer : nb                Assigned Domain : sgi.com             
Assigned Group : xfs-linux            Category : software                   
Customer Reported : F                 Priority : 2                          
Project : xfs-linux                   Status : open                         
Description :
pwd does not always return the entire path on an NFS mounted directory on 
a sun client (i.e. the local mount point is not included). The server 
is running 2.4.2 with the equivalent of XFS release 0.10. This happens when
using version 2 or version 3 NFS. Does NOT happen with with ext2 file
system or with linux client.

latte 31% /etc/mount | grep tarpon
  /tmp/tarpon_v2 on tarpon:/mnt1 vers=2/remote on Mon Mar 26 09:48:56 2001
  /tmp/tarpon_v3 on tarpon:/mnt1 vers=3/remote on Mon Mar 26 09:49:04 2001
  latte 32% cd /tmp/tarpon_v3
  latte 33% pwd
  /tmp/tarpon_v3
  latte 34% cd cthon00
  latte 35% pwd
  pwd: cannot determine current directory!

Note that a similar problem also occurs using IRIX clients but that is
because of a known problem in IRIX which is documented in PV 815265.

Note that it only happens with pwd under csh and /bin/pwd.
  latte 28% ksh
  $ cd /tmp/tarpon_v3/cthon00
  $ pwd
  /tmp/tarpon_v3/cthon00
  $ csh
  latte 21% pwd
  /cthon00
  latte 22% ksh   
  $ pwd
  /cthon00
  $ cd /tmp/tarpon_v3/cthon00
  $ pwd
  /tmp/tarpon_v3/cthon00

latte 29% truss /bin/pwd
execve("/bin/pwd", 0xDFFFFCE8, 0xDFFFFCF0)  argc = 1
open("/dev/zero", O_RDONLY)                     = 3
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 
0xDF7C0000
open("/usr/lib/libc.so.1", O_RDONLY)            = 4
fstat(4, 0xDFFFF88C)                            = 0
mmap(0x00000000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xDF7B0000
mmap(0x00000000, 700416, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xDF700000
munmap(0xDF793000, 61440)                       = 0
mmap(0xDF7A2000, 27744, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 
4, 598016) = 0xDF7A2000
mmap(0xDF7A9000, 6000, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 
3, 0) = 0xDF7A9000
close(4)                                        = 0
open("/usr/lib/libdl.so.1", O_RDONLY)           = 4
fstat(4, 0xDFFFF88C)                            = 0
mmap(0xDF7B0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 
0xDF7B0000
close(4)                                        = 0
open("/usr/platform/SUNW,SPARCserver-1000/lib/libc_psr.so.1", O_RDONLY) Err#2 
ENOENT
close(3)                                        = 0
pathconf(".", _PC_PATH_MAX)                     = 1024
stat64("./", 0xDFFFFB98)                        = 0
brk(0x00021178)                                 = 0
brk(0x00023178)                                 = 0
stat64("/", 0xDFFFFB00)                         = 0
open64("./../", O_RDONLY|O_NDELAY)              = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
fstat64(3, 0xDFFFF1A0)                          = 0
fstat64(3, 0xDFFFFB98)                          = 0
getdents64(3, 0x00021998, 1048)                 = 1040
close(3)                                        = 0
open64("./../../", O_RDONLY|O_NDELAY)           = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
fstat64(3, 0xDFFFF1A0)                          = 0
fstat64(3, 0xDFFFFB98)                          = 0
close(3)                                        = 0
/cthon00
write(1, " / c t h o n 0 0\n", 9)               = 9
llseek(0, 0, SEEK_CUR)                          = 7329
_exit(0)
latte 30%

<Prev in Thread] Current Thread [Next in Thread>
  • BUG 819118 - pwd on sun NFS client does not return entire path, tbd@xxxxxxx <=