From f04898973f15cfa13fcf39a903786983885352bc Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 10 Jun 2011 00:34:10 +0000 Subject: cluster/afr: Give proper device id for mknod Signed-off-by: Pranith Kumar K Signed-off-by: Anand Avati 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 --- xlators/cluster/afr/src/afr-self-heal-entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src/afr-self-heal-entry.c') diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c index 24f979238..289ad2748 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -1177,7 +1177,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); -- cgit