Commit 3ce85683 authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] devfs: md

parent 772393f4
...@@ -3486,11 +3486,11 @@ int __init md_init(void) ...@@ -3486,11 +3486,11 @@ int __init md_init(void)
devfs_mk_dir("md"); devfs_mk_dir("md");
blk_register_region(MKDEV(MAJOR_NR, 0), MAX_MD_DEVS, THIS_MODULE, blk_register_region(MKDEV(MAJOR_NR, 0), MAX_MD_DEVS, THIS_MODULE,
md_probe, NULL, NULL); md_probe, NULL, NULL);
for (minor=0; minor < MAX_MD_DEVS; ++minor) { for (minor=0; minor < MAX_MD_DEVS; ++minor) {
char name[16]; devfs_mk_bdev(MKDEV(MAJOR_NR, minor),
sprintf(name, "md/%d", minor); S_IFBLK|S_IRUSR|S_IWUSR,
devfs_register(NULL, name, DEVFS_FL_DEFAULT, MAJOR_NR, minor, "md/%d", minor);
S_IFBLK | S_IRUSR | S_IWUSR, &md_fops, NULL);
} }
register_reboot_notifier(&md_notifier); register_reboot_notifier(&md_notifier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment