Lines Matching defs:level
232 * Retrieve level from md device using sysfs.
236 const char *attribute = "level";
237 int level = -1;
240 "raid%d", &level) != 1)
244 dev_name(dev), attribute, level);
246 return level;
274 int level, raid_disks, data_disks;
280 level = dev_md_level(sysfs_dir, dev);
281 if (level < 0)
288 /* The raid level governs the number of data disks. */
289 switch (level) {
309 log_error("Device %s has an unknown md raid level: %d",
310 dev_name(dev), level);