Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 331971 | Differences between
and this patch

Collapse All | Expand All

(-)a/include/usage.src.h (+5 lines)
Lines 2674-2679 INSERT Link Here
2674
       "the last line match .* to override this.)\n\n" \
2674
       "the last line match .* to override this.)\n\n" \
2675
	)
2675
	)
2676
2676
2677
#define mdstart_trivial_usage \
2678
	"{[PARTITION] MD-NODE}..."
2679
#define mdstart_full_usage \
2680
	"Run the RAID_AUTORUN ioctl on the given MD number"
2681
	
2677
#define mesg_trivial_usage \
2682
#define mesg_trivial_usage \
2678
       "[y|n]"
2683
       "[y|n]"
2679
#define mesg_full_usage "\n\n" \
2684
#define mesg_full_usage "\n\n" \
(-)busybox-1.17.4.orig/util-linux/Config.src (+7 lines)
Lines 429-434 config FEATURE_MDEV_LOAD_FIRMWARE Link Here
429
	  /lib/firmware/ and if it exists, send it to the kernel for
429
	  /lib/firmware/ and if it exists, send it to the kernel for
430
	  loading into the hardware.
430
	  loading into the hardware.
431
431
432
config MDSTART
433
	bool "mdstart"
434
	default n
435
	help
436
	  Allows you to autostart /dev/md devices if using an initramfs to
437
	  boot.
438
432
config MKSWAP
439
config MKSWAP
433
	bool "mkswap"
440
	bool "mkswap"
434
	default y
441
	default y
(-)busybox-1.17.4.orig/util-linux/Kbuild.src (+1 lines)
Lines 24-29 lib-$(CONFIG_HWCLOCK) += hwclo Link Here
24
lib-$(CONFIG_IPCRM)             += ipcrm.o
24
lib-$(CONFIG_IPCRM)             += ipcrm.o
25
lib-$(CONFIG_IPCS)              += ipcs.o
25
lib-$(CONFIG_IPCS)              += ipcs.o
26
lib-$(CONFIG_LOSETUP)           += losetup.o
26
lib-$(CONFIG_LOSETUP)           += losetup.o
27
lib-$(CONFIG_MDSTART)          += mdStart.o
27
lib-$(CONFIG_LSPCI)             += lspci.o
28
lib-$(CONFIG_LSPCI)             += lspci.o
28
lib-$(CONFIG_LSUSB)             += lsusb.o
29
lib-$(CONFIG_LSUSB)             += lsusb.o
29
lib-$(CONFIG_MDEV)              += mdev.o
30
lib-$(CONFIG_MDEV)              += mdev.o
(-)busybox-1.17.4.orig/util-linux/mdStart.c (+59 lines)
Line 0 Link Here
1
/*
2
 * Linux 2.6(+) RAID Autostarter
3
 *
4
 * Copyright (C) 2005 by Tim Yamin <plasmaroo@gentoo.org> <plasm@roo.me.uk>
5
 *
6
 * This program is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; either version 2 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
 * General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
 *
20
 */
21
22
#include <sys/types.h>
23
#include <sys/stat.h>
24
#include <fcntl.h>
25
#include <sys/ioctl.h>
26
#include <linux/major.h>
27
#include <linux/raid/md_u.h>
28
29
extern int
30
mdstart_main(int argc, char *argv[])
31
{
32
	int i, fd, part = 0, retval = 0;
33
34
	if(argc < 2)
35
	{
36
		bb_show_usage();
37
	}
38
39
	for(i = 1; i < argc; i++)
40
	{
41
		if(sscanf(argv[i], "%d", &part) == 1)
42
			continue;
43
44
		fd = open(argv[i], 0, 0);
45
		if (fd >= 0)
46
		{
47
			ioctl(fd, RAID_AUTORUN, part);
48
			close(fd);
49
		} else
50
		{
51
			printf("Error: Failed to open %s!\n", argv[i]);
52
			retval=1;
53
		}
54
55
		part = 0;
56
	}
57
58
	return retval;
59
}

Return to bug 331971