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

Emmanuel Dreyfus manu at netbsd.org
Sun Oct 12 14:59:08 UTC 2014


Emmanuel Dreyfus <manu at netbsd.org> wrote:

> Erratum: it happens because it attempts to seekdir to the offset
> obtained for last record. But I still have to find what code is sending
> the request.

Here is the king of debug trace I have:


[quota.c:3959:quota_readdirp] 0-XXXmanu: fd = 0xbb242818, offset = 0
[posix.c:4882:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801520
[posix.c:4966:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801504
[posix.c:4882:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801504
[posix.c:4966:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801488
[posix.c:4882:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801488
[posix.c:4882:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801472
[posix.c:4966:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801456
[posix.c:4882:posix_fill_readdir] 0-XXXmanu: telldir(0xb99c7250) = -1154801456
[quota.c:3892:quota_readdirp_cbk] 0-XXXmanu: op_ret = 3, op_errno = ENOENT
[quota.c:3959:quota_readdirp] 0-XXXmanu: fd = 0xbb242818, offset = -1154801456
[posix.c:4865:posix_fill_readdir] 0-XXXmanu: seekdir(0xb99c7250, -1154801456)
[posix.c:4872:posix_fill_readdir] 0-patchy-posix: seekdir(-1154801456) failed on dir=0xb99c7250: Invalid argument (offset reused from another DIR * structure?) 
[quota.c:3892:quota_readdirp_cbk] 0-XXXmanu: op_ret = -1, op_errno = EINVAL 
[2014-10-12 14:51:35.176375] I [server-rpc-fops.c:1917:server_readdirp_cbk] 0-patchy-server: 19: READDIRP 0 (00000000-0000-0000-0000-000000000001) ==> (Invalid argument)
[quota.c:3959:quota_readdirp] 0-XXXmanu: fd = 0xbb242818, offset = -1154801456
[posix.c:4865:posix_fill_readdir] 0-XXXmanu: seekdir(0xb99c7250, -1154801456)
[posix.c:4872:posix_fill_readdir] 0-patchy-posix: seekdir(-1154801456) failed on dir=0xb99c7250: Invalid argument (offset reused from another DIR * structure?) 


-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu at netbsd.org


More information about the Gluster-devel mailing list