From b49ad40a7e7f656b509291b07bf539c64bae3ee1 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 25 Feb 2010 15:38:01 +0000 Subject: 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 Signed-off-by: Anand V. Avati 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 --- xlators/cluster/dht/src/dht-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit