[Gluster-devel] Invalid DIR * usage in quota xlator

J. Bruce Fields bfields at fieldses.org
Tue Oct 14 19:43:49 UTC 2014


On Sun, Oct 12, 2014 at 10:09:01AM +0200, Emmanuel Dreyfus wrote:
> When quota xlator is enabled, bricks get this:
> 
> [2014-10-12 07:56:03.090516] E [posix.c:4874:posix_fill_readdir]
> 0-patchy-posix: seekdir(-1154801456) failed on dir=0xb99cb250: Invalid
> argument (offset reused from another DIR * structure?)
> 
> This means something either seekdir on a DIR * that was not obtained by
> opendir(), or that was closedir() and then opendir() again. Can someone
> explain me what directory walks are introduced by quota, and where
> opendir/readdir/closedir happen for that?

Apologies, I'm just catching up, but I'm confused by

	c65d4ea8a10a "Fix invalid seekdir() usage"

Is the result on non-Linux really to fail any readdir using an offset
not returned from the current open?

I can't see how NFS READDIR will work on non-Linux platforms in that
case.

--b.


More information about the Gluster-devel mailing list