diff options
author | Anand Avati <avati@gluster.com> | 2009-12-06 12:46:14 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-06 10:35:06 -0800 |
commit | 0117cf0d3dfeb49b739e0da84f429b5375fd922a (patch) | |
tree | f031a15e017e7692341abf9b3f36d8182194e12f /xlators/mount/fuse | |
parent | b5ad85803b85ae83b2a1bcbe18c8b42265dc34dc (diff) |
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 <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 13 |
1 files changed, 12 insertions, 1 deletions
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")", |