From 0117cf0d3dfeb49b739e0da84f429b5375fd922a Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 6 Dec 2009 12:46:14 +0000 Subject: fuse-bridge: log cases where newer generation is found in table This is usually the case when there is a bug a cluster xlator and returns generation number from the wrong subvolume Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 433 (Posix conformance test failed on 3.0.0pre2 (Dec 3) release) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=433 --- xlators/mount/fuse/src/fuse-bridge.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 0710ebb9b..857686ad2 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -494,6 +494,17 @@ fuse_entry_cbk (call_frame_t *frame, void *cookie, xlator_t *this, linked_inode = inode_link (inode, state->loc.parent, state->loc.name, buf); + if (linked_inode != inode) { + gf_log ("glusterfs-fuse", GF_LOG_WARNING, + "%s(%s) inode (ptr=%p, ino=%"PRId64", " + "gen=%"PRId64") found conflict (ptr=%p, " + "ino=%"PRId64", gen=%"PRId64")", + gf_fop_list[frame->root->op], + state->loc.path, inode, inode->ino, + inode->generation, linked_inode, + linked_inode->ino, linked_inode->generation); + } + inode_lookup (linked_inode); /* TODO: make these timeouts configurable (via meta?) */ @@ -1644,7 +1655,7 @@ fuse_create_cbk (call_frame_t *frame, void *cookie, xlator_t *this, state->loc.name, buf); if (linked_inode != inode) { - gf_log ("glusterfs-fuse", GF_LOG_DEBUG, + gf_log ("glusterfs-fuse", GF_LOG_WARNING, "create(%s) inode (ptr=%p, ino=%"PRId64", " "gen=%"PRId64") found conflict (ptr=%p, " "ino=%"PRId64", gen=%"PRId64")", -- cgit