Lines Matching +full:level +full:- +full:detect

1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/raid/detect.h>
33 int level; member
41 * Parse the command-line parameters given our kernel, but do not
43 * md_setup_drive after the low-level disk drivers have initialised.
49 * instead of just one. -- KTK
50 * 18May2000: Added support for persistent-superblock arrays:
51 * md=n,0,factor,fault,device-list uses RAID0 for device n
52 * md=n,device-list reads a RAID superblock from the devices
53 * elements in device-list are read by name_to_kdev_t so can be
55 * 2001-06-03: Dave Cinege <dcinege@psychosis.com>
61 int minor, level, factor, fault, partitioned = 0; in md_setup() local
83 printk(KERN_WARNING "md: md=%s%d - too many md initialisations\n", partitioned?"d":"", minor); in md_setup()
88 switch (get_option(&str, &level)) { /* RAID level */ in md_setup()
89 case 2: /* could be 0 or -1.. */ in md_setup()
90 if (level == 0) { in md_setup()
96 md_setup_args[ent].level = level; in md_setup()
106 md_setup_args[ent].level = LEVEL_NONE; in md_setup()
107 pername="super-block"; in md_setup()
121 char *devname = args->device_names; in md_setup_drive()
128 if (args->partitioned) { in md_setup_drive()
129 mdev = MKDEV(mdp_major, args->minor << MdpMinorShift); in md_setup_drive()
130 sprintf(name, "md_d%d", args->minor); in md_setup_drive()
132 mdev = MKDEV(MD_MAJOR, args->minor); in md_setup_drive()
133 sprintf(name, "md%d", args->minor); in md_setup_drive()
166 pr_info("md: Loading %s: %s\n", name, args->device_names); in md_setup_drive()
170 pr_err("md: md_alloc failed - cannot start array %s\n", name); in md_setup_drive()
180 if (!list_empty(&mddev->disks) || mddev->raid_disks) { in md_setup_drive()
186 if (args->level != LEVEL_NONE) { in md_setup_drive()
187 /* non-persistent */ in md_setup_drive()
188 ainfo.level = args->level; in md_setup_drive()
189 ainfo.md_minor = args->minor; in md_setup_drive()
192 ainfo.chunk_size = args->chunk; in md_setup_drive()
205 if (args->level != LEVEL_NONE) { in md_setup_drive()
236 wlen = (comma-str)-pos; in raid_setup()
237 else wlen = (len-1)-pos; in raid_setup()
258 * Since we don't want to detect and use half a raid array, we need to in autodetect_raid()