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
This commit is contained in:
Shehjar Tikoo 2010-02-25 15:38:01 +00:00 committed by Anand V. Avati
parent ed54528c22
commit b49ad40a7e

View File

@ -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;
}