Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114269
b: refs/heads/master
c: a364092
h: refs/heads/master
i:
  114267: 399d852
v: v3
  • Loading branch information
Arjan van de Ven committed Oct 12, 2008
1 parent b8db483 commit 4bb1710
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82cbc11a4146d6a8acd81f81f7fe17387668107f
refs/heads/master: a364092a412975e506415f77f0628cbdd28c3913
14 changes: 14 additions & 0 deletions trunk/drivers/md/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ config BLK_DEV_MD

If unsure, say N.

config MD_AUTODETECT
bool "Autodetect RAID arrays during kernel boot"
depends on BLK_DEV_MD
default y
---help---
If you say Y here, then the kernel will try to autodetect raid
arrays as part of its boot process.

If you don't use raid and say Y, this autodetection can cause
a several-second delay in the boot time due to various
synchronisation steps that are part of this step.

If unsure, say Y.

config MD_LINEAR
tristate "Linear (append) mode"
depends on BLK_DEV_MD
Expand Down
11 changes: 9 additions & 2 deletions trunk/init/do_mounts_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
* The code for that is here.
*/

static int __initdata raid_noautodetect, raid_autopart;
#ifdef CONFIG_MD_AUTODETECT
static int __initdata raid_noautodetect;
#else
static int __initdata raid_noautodetect=1;
#endif
static int __initdata raid_autopart;

static struct {
int minor;
Expand Down Expand Up @@ -252,6 +257,8 @@ static int __init raid_setup(char *str)

if (!strncmp(str, "noautodetect", wlen))
raid_noautodetect = 1;
if (!strncmp(str, "autodetect", wlen))
raid_noautodetect = 0;
if (strncmp(str, "partitionable", wlen)==0)
raid_autopart = 1;
if (strncmp(str, "part", wlen)==0)
Expand Down Expand Up @@ -288,7 +295,7 @@ void __init md_run_setup(void)
create_dev("/dev/md0", MKDEV(MD_MAJOR, 0));

if (raid_noautodetect)
printk(KERN_INFO "md: Skipping autodetection of RAID arrays. (raid=noautodetect)\n");
printk(KERN_INFO "md: Skipping autodetection of RAID arrays. (raid=autodetect will force)\n");
else
autodetect_raid();
md_setup_drive();
Expand Down

0 comments on commit 4bb1710

Please sign in to comment.