Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114266
b: refs/heads/master
c: 589f800
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven committed Oct 12, 2008
1 parent 43f4d36 commit 49a913f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bd9890e94627bc1ef372085e64dda7f9e307e82
refs/heads/master: 589f800bb12c5cd6c9167bbf9bf3cb70cd8e422c
7 changes: 7 additions & 0 deletions trunk/init/do_mounts_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,16 @@ __setup("md=", md_setup);
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");
else {
/*
* Since we don't want to detect and use half a raid array, we need to
* wait for the known devices to complete their probing
*/
while (driver_probe_done() != 0)
msleep(100);
int fd = sys_open("/dev/md0", 0, 0);
if (fd >= 0) {
sys_ioctl(fd, RAID_AUTORUN, raid_autopart);
Expand Down

0 comments on commit 49a913f

Please sign in to comment.