diff options
author | Anand Avati <avati@gluster.com> | 2009-12-06 13:06:18 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-12-06 10:44:42 -0800 |
commit | fe37a56dd42294e26158a29c15a35aeb8cb38be2 (patch) | |
tree | 3fa218df92d7f18ded939e630ae11ce67e52c136 /xlators/cluster/dht/src | |
parent | 72e82741b52fb749eb912f97848b707d97ec69ff (diff) |
distribute: more cases of st_dev setting
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 5 |
1 files changed, 4 insertions, 1 deletions
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", |