Re: regression, bisected: getcwd() ENOENT on NFS4...
From: Daniel J Blueman
Date: Wed Nov 04 2009 - 04:36:53 EST
On Sun, Nov 1, 2009 at 12:47 PM, Daniel J Blueman
> Hi Trond,
> On Mon, Oct 26, 2009 at 1:19 PM, Trond Myklebust
> <Trond.Myklebust@xxxxxxxxxx> wrote:
>> On Sun, 2009-10-25 at 23:31 +0000, Daniel J Blueman wrote:
>>> Since 2.6.30-rc, I've been experiencing various issues relating to
>>> getcwd() returning ENOENT on NFS4 clients. I used an over-complicated
>>> but reliable reproducer  (on Karmic RC against a 2.6.32-rc5 NFS4
>>> server) to bisect .
>>> The impact of this regression is moderate (side-effects range from
>>> benign to failure), so we should get a fix into 2.6.32 if at all
>>> possible and strongly consider a 2.6.31 stable update.
>>> --- 
>>> $ apt-get source apt
>>> $ cd apt-*
>>> $ ./configure && make
>>> sh: getcwd() failed: No such file or directory
>>> --- 
>>> a65318bf3afc93ce49227e849d213799b072c5fd is first bad commit
>>> commit a65318bf3afc93ce49227e849d213799b072c5fd
>>> Author: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
>>> Date: Wed Mar 11 14:10:28 2009 -0400
>>> NFSv4: Simplify some cache consistency post-op GETATTRs
>> I'm having a lot of trouble seeing how this patch could result in
>> ENOENT. All it should be doing is reducing the frequency with which we
>> update some of the inode metadata.
>> Have you ever been able to capture one of these errors using strace?
> Backing this patch out by hand against stock 2.6.32-rc5 (w/ 2.6.32-rc5
> on server) corrects the behaviour. It's readily reproducible ;
> using 2.6.30, the issue is not seen, thus is a regression.
> To observe the change to user-level behaviour (after the reproducer commands):
> # make clean
> # strace -ffe getcwd make -n >list
> [pid 3829] getcwd(0x7fffa269a380, 4096) = -1 ENOENT (No such file or directory)
> make: getcwd: No such file or directory
> Would this help for me to log this via a bugzilla.kernel.org ticket?
> --- 
> booting eg:
> $ sudo bash
> # apt-get install build-essential
> # apt-get build-dep apt
> # mount server:/ /mnt -tnfs4 && cd /mnt
> # apt-get source apt
> # cd apt-0.7.23.1ubuntu2
> # ./configure && make
> -> "getcwd: No such file or directory" messages observed with cited
> patch and not without
For continuity with the mailing list thread, I've created a bug report
of this at:
Daniel J Blueman
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/