2011-02-22 21:58:57

by Bruce Guenter

[permalink] [raw]
Subject: Invisible file problem


I have come on a situation where a file in a directory is not showing up
in any directory listings, yet is still accessible by direct access. It
shows up in listings on the server but not on the client. I did a
capture of the NFS protocol traffic, and the file is showing up in the
readdir call results. If I recreate the directory using the same file
names but empty files, the behavior persists.

I am running vanilla 2.6.37.1 on both client and server, using NFSv4.
The server filesystem is ext4.

Is this a kernel NFS client bug? Is there anything else I can do to
diagnose the source of the problem, or any way to work around it?

Thanks.

--
Bruce Guenter <[email protected]> http://untroubled.org/


Attachments:
(No filename) (729.00 B)
(No filename) (198.00 B)
Download all attachments

2011-02-23 08:04:44

by Trond Myklebust

[permalink] [raw]
Subject: Re: Invisible file problem

On Tue, 2011-02-22 at 15:52 -0600, Bruce Guenter wrote:
> I have come on a situation where a file in a directory is not showing up
> in any directory listings, yet is still accessible by direct access. It
> shows up in listings on the server but not on the client. I did a
> capture of the NFS protocol traffic, and the file is showing up in the
> readdir call results. If I recreate the directory using the same file
> names but empty files, the behavior persists.
>
> I am running vanilla 2.6.37.1 on both client and server, using NFSv4.
> The server filesystem is ext4.
>
> Is this a kernel NFS client bug? Is there anything else I can do to
> diagnose the source of the problem, or any way to work around it?
>
> Thanks.

There is a known bug in readdir that has been fixed in 2.6.38-rc6, but
hasn't yet hit the 2.6.37 stable series. Please check the patch at

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=d1205f87bbb8040c1408bbd9e0a720310b2b0b9b

and see if it fixes your problem.

Cheers
Trond


2011-02-23 19:42:51

by Joe Landman

[permalink] [raw]
Subject: Re: Invisible file problem

On 02/23/2011 09:50 AM, Bruce Guenter wrote:
> On Tue, Feb 22, 2011 at 11:50:47PM -0800, Trond Myklebust wrote:
>> There is a known bug in readdir that has been fixed in 2.6.38-rc6, but
>> hasn't yet hit the 2.6.37 stable series. Please check the patch at
>>
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=d1205f87bbb8040c1408bbd9e0a720310b2b0b9b
>>
>> and see if it fixes your problem.
>
> Yes it did, thank you very much.

Is this a server or client side issue BTW? I am trying to track
something that could be related to this down.

Thanks!

Joe


--
Joe Landman
[email protected]

2011-02-23 20:23:51

by Bruce Guenter

[permalink] [raw]
Subject: Re: Invisible file problem

On Wed, Feb 23, 2011 at 02:42:36PM -0500, Joe Landman wrote:
> Is this a server or client side issue BTW? I am trying to track
> something that could be related to this down.

Client side.

--
Bruce Guenter <[email protected]> http://untroubled.org/


Attachments:
(No filename) (271.00 B)
(No filename) (198.00 B)
Download all attachments

2011-02-23 14:50:07

by Bruce Guenter

[permalink] [raw]
Subject: Re: Invisible file problem

On Tue, Feb 22, 2011 at 11:50:47PM -0800, Trond Myklebust wrote:
> There is a known bug in readdir that has been fixed in 2.6.38-rc6, but
> hasn't yet hit the 2.6.37 stable series. Please check the patch at
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git&a=commitdiff&h=d1205f87bbb8040c1408bbd9e0a720310b2b0b9b
>
> and see if it fixes your problem.

Yes it did, thank you very much.

--
Bruce Guenter <[email protected]> http://untroubled.org/


Attachments:
(No filename) (486.00 B)
(No filename) (198.00 B)
Download all attachments