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:
parent
ed54528c22
commit
b49ad40a7e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user