summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-06-08 09:30:03 +0000
committerAnand Avati <avati@gluster.com>2011-06-08 11:19:11 -0700
commit84eca97a940fc1cad339e9238528c29cfcf9ac42 (patch)
treeaf4a9f01a2467516f3247a45c8a01648f41110a2
parent152ba0fa976adcbcb7dd2f485a52fedc2fc49d6d (diff)
cluster/afr: Give proper device id for mknod
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2840 (files not getting self-healed when the first child goes down) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2840
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c
index b54b33194..8f7133b97 100644
--- a/xlators/cluster/afr/src/afr-self-heal-entry.c
+++ b/xlators/cluster/afr/src/afr-self-heal-entry.c
@@ -1202,7 +1202,8 @@ afr_sh_entry_impunge_mknod (call_frame_t *impunge_frame, xlator_t *this,
priv->children[child_index]->fops->mknod,
&impunge_local->loc,
st_mode_from_ia (stbuf->ia_prot, stbuf->ia_type),
- stbuf->ia_rdev, dict);
+ makedev (ia_major (stbuf->ia_rdev),
+ ia_minor (stbuf->ia_rdev)), dict);
if (dict)
dict_unref (dict);