summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/dht/src/dht-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 1c0cf682af8..326724a993d 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -3118,6 +3118,12 @@ dht_mkdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
dht_stat_merge (this, &local->preparent, preparent, prev->this);
dht_stat_merge (this, &local->postparent, postparent,
prev->this);
+
+ if (prev->this == dht_first_up_subvol (this)) {
+ local->st_ino = local->stbuf.st_ino;
+ local->st_dev = local->stbuf.st_dev;
+ }
+
}
unlock:
UNLOCK (&frame->lock);