diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-06-09 04:00:43 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-09 07:41:44 -0700 |
commit | 441ec91f6c87f987abe9417bfdb60bda1094718b (patch) | |
tree | d066161bcf54c9481420bc6bba96e58117bbf3b0 /xlators/cluster/afr | |
parent | d213487802f0aa62c46eb18eeb75bd5b65434dbc (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
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-entry.c | 3 |
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 c4e1532ba72..a4077ddb0f9 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -1169,7 +1169,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); |