The function test_num_disk_vs_raid() show an error message if the raid profile is incompatible with the number of devices. Unfortunately when the error is related to data profile, the message print the metadata profile.
How reproduce: $ mkfs.btrfs -f -m dup -d raid5 /dev/vdb" Error: unable to create FS with data profile 32 (have 1 devices) Expected result: Error: unable to create FS with data profile 128 (have 1 devices) mkfs.btrfs should print the profile 128 (==raid5) and not 32 (==dup) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html