kern/118170: [zfs] /bin/pwd fails under .zfs/snapshot

Jaakko Heinonen jh at saunalahti.fi
Fri May 29 14:00:14 UTC 2009


The following reply was made to PR kern/118170; it has been noted by GNATS.

From: Jaakko Heinonen <jh at saunalahti.fi>
To: kmacy at FreeBSD.org
Cc: koie at suri.co.jp, bug-followup at FreeBSD.org
Subject: Re: kern/118170: [zfs] /bin/pwd fails under .zfs/snapshot
Date: Fri, 29 May 2009 16:58:50 +0300

 Hi,
 
 On 2009-05-28, kmacy at FreeBSD.org wrote:
 > no longer applies
 > 
 > kmacy at delirium [/usr/.zfs/snapshot|16:09|109] cd foo 
 > kmacy at delirium [/usr/.zfs/snapshot/foo|16:09|110] pwd
 > /usr/.zfs/snapshot/foo
 
 The problem still exists. It seems that you used shell built-in pwd
 which doesn't call getcwd(3) but uses it's own bookkeeping for working
 directory.
 
 The problem was discussed on -fs in February and I described it in this
 message:
 
 http://lists.freebsd.org/pipermail/freebsd-fs/2009-February/005671.html
 
 Since then __getcwd() has improved because vop_stdvptocnp() can now use
 readdir("..") to resolve component names. However it can't cross mount
 points and because zfs snapshot are mounted the problem is still there.
 
 -- 
 Jaakko


More information about the freebsd-fs mailing list