Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md: improve message about invalid superblock during autodetect

People try to use raid auto-detect with version-1 superblocks (which is not
supported) and get confused when they are told they have an invalid
superblock.

So be more explicit, and say it it is not a valid v0.90 superblock.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

NeilBrown and committed by
Linus Torvalds
df968c4e afd44034

+6 -4
+6 -4
drivers/md/md.c
··· 2073 2073 err = super_types[super_format]. 2074 2074 load_super(rdev, NULL, super_minor); 2075 2075 if (err == -EINVAL) { 2076 - printk(KERN_WARNING 2077 - "md: %s has invalid sb, not importing!\n", 2078 - bdevname(rdev->bdev,b)); 2076 + printk(KERN_WARNING 2077 + "md: %s does not have a valid v%d.%d " 2078 + "superblock, not importing!\n", 2079 + bdevname(rdev->bdev,b), 2080 + super_format, super_minor); 2079 2081 goto abort_free; 2080 2082 } 2081 2083 if (err < 0) { ··· 5773 5771 for (i = 0; i < dev_cnt; i++) { 5774 5772 dev_t dev = detected_devices[i]; 5775 5773 5776 - rdev = md_import_device(dev,0, 0); 5774 + rdev = md_import_device(dev,0, 90); 5777 5775 if (IS_ERR(rdev)) 5778 5776 continue; 5779 5777