From 80066c23da120621f26d83d631e204ab2943d181 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Sun, 22 Feb 2009 11:29:05 +0530 Subject: posix_releasedir flush fds from xattrcache. It would have entered cache in setdents. Proposed fix for: http://zresearch.com/pipermail/gluster-users/2009-February/001621.html Signed-off-by: Anand V. Avati --- xlators/storage/posix/src/posix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 159f02dde..fe59d6486 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -590,6 +590,7 @@ posix_releasedir (xlator_t *this, struct posix_fd * pfd = NULL; uint64_t tmp_pfd = 0; int ret = 0; + xattr_cache_handle_t handle = {{0,},0}; VALIDATE_OR_GOTO (this, out); VALIDATE_OR_GOTO (fd, out); @@ -611,6 +612,9 @@ posix_releasedir (xlator_t *this, goto out; } + handle.fd = fd; + posix_xattr_cache_flush (this, &handle); + ret = closedir (pfd->dir); if (ret == -1) { op_errno = errno; -- cgit