summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:38:01 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:13:05 -0800
commitb49ad40a7e7f656b509291b07bf539c64bae3ee1 (patch)
tree9ec7396cac786af9f6f74eb1854673eca0ae5606
parented54528c22193f7e2cf6833bbcd22dc338d02c74 (diff)
distribute: Return ino from the first-up subvolume in lookup
Not returning this from the first-up subvolume results in different inode numbers being returned for a directory when the same directory is read again through the NFS readdir request. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 597 (miscellaneous fixes for xlators to work well with NFS xlator) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=597
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 90fac564d00..252dfff4471 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -136,7 +136,7 @@ dht_lookup_dir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
dht_stat_merge (this, &local->postparent, postparent,
prev->this);
- if (prev->this == local->hashed_subvol) {
+ if (prev->this == dht_first_up_subvol (this)) {
local->st_ino = local->stbuf.st_ino;
local->st_dev = local->stbuf.st_dev;
}