From fe37a56dd42294e26158a29c15a35aeb8cb38be2 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sun, 6 Dec 2009 13:06:18 +0000 Subject: distribute: more cases of st_dev setting Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati 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 --- xlators/cluster/dht/src/dht-common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 36d503dfa6d..c1689fe759e 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -136,8 +136,10 @@ 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 == local->hashed_subvol) { local->st_ino = local->stbuf.st_ino; + local->st_dev = local->stbuf.st_dev; + } } unlock: @@ -167,6 +169,7 @@ unlock: if (local->st_ino) { local->stbuf.st_ino = local->st_ino; + local->stbuf.st_dev = local->st_dev; } else { gf_log (this->name, GF_LOG_DEBUG, "could not find hashed subvol for %s", -- cgit