[Bugs] [Bug 1384297] glusterfs can' t self heal character dev file for invalid dev_t parameters
bugzilla at redhat.com
bugzilla at redhat.com
Thu Oct 13 03:31:23 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1384297
--- Comment #1 from xiaopwu <xiaoping.wu at nokia.com> ---
the root cause of the issue as below:
--- old/afr-self-heal-entry.c
+++ new/afr-self-heal-entry.c
@@ -142,8 +142,10 @@
ret = dict_set_int32 (xdata, GLUSTERFS_INTERNAL_FOP_KEY, 1);
if (ret)
goto out;
+
ret = syncop_mknod (priv->children[dst], &loc, mode,
- iatt->ia_rdev, xdata, &newent);
+ makedev (ia_major (iatt->ia_rdev), ia_minor
(iatt->ia_rdev)), xdata, &newent);
+
if (ret == 0 && newent.ia_nlink == 1) {
/* New entry created. Mark @dst pending on all sources
*/
newentry[dst] = 1;
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list