[PATCH][BTRFS-PROGS] Print metadata profile instead of data profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux