Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 646014 Details for
Bug 873576
mdmon not run for existing RAID-1 arrays when anaconda ins initializing, results in parted hanging trying to inspect newly-created Intel fwraid RAID-1 array
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Possible fix for mdadm to make it play nice with udev and systemd
mdadm-3.2.6-cgroup.patch (text/plain), 864 bytes, created by
Doug Ledford
on 2012-11-15 22:17:17 UTC
(
hide
)
Description:
Possible fix for mdadm to make it play nice with udev and systemd
Filename:
MIME Type:
Creator:
Doug Ledford
Created:
2012-11-15 22:17:17 UTC
Size:
864 bytes
patch
obsolete
>diff -up mdadm-3.2.6/util.c.cgroup mdadm-3.2.6/util.c >--- mdadm-3.2.6/util.c.cgroup 2012-11-15 16:48:03.327035349 -0500 >+++ mdadm-3.2.6/util.c 2012-11-15 17:07:16.628751041 -0500 >@@ -1611,6 +1611,21 @@ int mdmon_running(int devnum) > return 0; > } > >+void set_cgroup(char *group) >+{ >+ char pid[8]; >+ char pathbuf[PATH_MAX]; >+ int tasks_fd; >+ >+ snprintf(pathbuf, PATH_MAX, "/sys/fs/cgroup/%s/tasks", group); >+ tasks_fd = open(pathbuf, O_WRONLY); >+ if (tasks_fd >= 0) { >+ snprintf(pid, sizeof(pid), "%d", getpid()); >+ write(tasks_fd, pid, strlen(pid)); >+ close(tasks_fd); >+ } >+} >+ > int start_mdmon(int devnum) > { > int i, skipped; >@@ -1653,6 +1668,7 @@ int start_mdmon(int devnum) > > for (i=0; paths[i]; i++) > if (paths[i][0]) { >+ set_cgroup("systemd"); > if (__offroot) { > execl(paths[i], "mdmon", "--offroot", > devnum2devname(devnum),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 873576
:
639474
|
639475
|
639670
| 646014