Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 292932 Details for
Bug 430214
A capture kernel does not boot up on /dev/mdx
[?]
New
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.rh83 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]
this is my proposal patch
busybox-1.2.0-raidautorun.patch (text/plain), 3.47 KB, created by
Atsushi Nakabayashi
on 2008-01-25 11:27:16 UTC
(
hide
)
Description:
this is my proposal patch
Filename:
MIME Type:
Creator:
Atsushi Nakabayashi
Created:
2008-01-25 11:27:16 UTC
Size:
3.47 KB
patch
obsolete
>diff -uNrp busybox-1.2.0.org/include/applets.h busybox-1.2.0/include/applets.h >--- busybox-1.2.0.org/include/applets.h 2008-01-22 12:46:49.000000000 +0900 >+++ busybox-1.2.0/include/applets.h 2008-01-22 12:47:54.000000000 +0900 >@@ -218,6 +218,7 @@ USE_PRINTENV(APPLET(printenv, _BB_DIR_BI > USE_PRINTF(APPLET(printf, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) > USE_PS(APPLET(ps, _BB_DIR_BIN, _BB_SUID_NEVER)) > USE_PWD(APPLET(pwd, _BB_DIR_BIN, _BB_SUID_NEVER)) >+USE_RAIDAUTORUN(APPLET(raidautorun, _BB_DIR_SBIN, _BB_SUID_NEVER)) > USE_RDATE(APPLET(rdate, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) > USE_READLINK(APPLET(readlink, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) > USE_READPROFILE(APPLET(readprofile, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) >diff -uNrp busybox-1.2.0.org/include/usage.h busybox-1.2.0/include/usage.h >--- busybox-1.2.0.org/include/usage.h 2008-01-22 12:46:49.000000000 +0900 >+++ busybox-1.2.0/include/usage.h 2008-01-22 12:48:44.000000000 +0900 >@@ -2070,6 +2070,13 @@ USE_FEATURE_MDEV_CONFIG( \ > "$ mountpoint /sys\n" \ > "/sys is a mountpoint\n" > >+#define raidautorun_trivial_usage \ >+ "DEVICE" >+#define raidautorun_full_usage \ >+ "Tells the kernel to automatically search and start RAID arrays\n" >+#define raidautorun_example_usage \ >+ "$ raidautorun /dev/md0\n" >+ > #define mt_trivial_usage \ > "[-f device] opcode value" > #define mt_full_usage \ >diff -uNrp busybox-1.2.0.org/miscutils/Config.in busybox-1.2.0/miscutils/Config.in >--- busybox-1.2.0.org/miscutils/Config.in 2008-01-22 12:46:49.000000000 +0900 >+++ busybox-1.2.0/miscutils/Config.in 2008-01-22 12:49:40.000000000 +0900 >@@ -269,6 +269,12 @@ config CONFIG_MOUNTPOINT > help > mountpoint checks if the directory is a mountpoint. > >+config CONFIG_RAIDAUTORUN >+ bool "raidautorun" >+ default y >+ help >+ raidautorun tells the kernel md driver to search and start RAID arrays. >+ > config CONFIG_MT > bool "mt" > default n >diff -uNrp busybox-1.2.0.org/miscutils/Makefile.in busybox-1.2.0/miscutils/Makefile.in >--- busybox-1.2.0.org/miscutils/Makefile.in 2008-01-22 12:46:49.000000000 +0900 >+++ busybox-1.2.0/miscutils/Makefile.in 2008-01-22 12:50:20.000000000 +0900 >@@ -23,6 +23,7 @@ MISCUTILS-$(CONFIG_LAST) += last. > MISCUTILS-${CONFIG_LESS} += less.o > MISCUTILS-$(CONFIG_MAKEDEVS) += makedevs.o > MISCUTILS-$(CONFIG_MOUNTPOINT) += mountpoint.o >+MISCUTILS-$(CONFIG_RAIDAUTORUN) += raidautorun.o > MISCUTILS-$(CONFIG_MT) += mt.o > MISCUTILS-$(CONFIG_RUNLEVEL) += runlevel.o > MISCUTILS-$(CONFIG_RX) += rx.o >diff -uNrp busybox-1.2.0.org/miscutils/raidautorun.c busybox-1.2.0/miscutils/raidautorun.c >--- busybox-1.2.0.org/miscutils/raidautorun.c 1970-01-01 09:00:00.000000000 +0900 >+++ busybox-1.2.0/miscutils/raidautorun.c 2008-01-25 13:12:45.000000000 +0900 >@@ -0,0 +1,36 @@ >+/* vi: set sw=4 ts=4: */ >+/* >+ * raidautorun implementation for busybox >+ * >+ * Copyright (C) 2006 Intra2net AG >+ * >+ * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. >+ * >+ */ >+#include "libbb.h" >+ >+#include <linux/major.h> >+#include <linux/raid/md_u.h> >+ >+#define RAID_MAJOR 9 >+int raidautorun_main(int argc, char **argv) >+{ >+ if (argc != 2) >+ bb_show_usage(); >+ >+ if (access(argv[1], R_OK & W_OK)) { >+ int minor; >+ if (sscanf(argv[1], "/dev/md%d", &minor) != 1) { >+ bb_perror_msg_and_die("sscanf"); >+ } >+ if (mknod(argv[1], S_IFBLK | 0600, makedev(RAID_MAJOR, minor))) { >+ bb_perror_msg_and_die("smartmknod"); >+ } >+ } >+ >+ if (ioctl(bb_xopen(argv[1], O_RDONLY), RAID_AUTORUN, NULL) != 0) { >+ bb_perror_msg_and_die("ioctl"); >+ } >+ >+ return EXIT_SUCCESS; >+}
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 430214
: 292932