btrfs-progs: mkfs: also parse raid0 profile case-insensitive

Signed-off-by: David Sterba <dsterba@suse.com>
master
David Sterba 2016-03-16 17:41:16 +01:00
parent cc25de4aa7
commit ded784f416
1 changed files with 1 additions and 1 deletions

2
mkfs.c
View File

@ -340,7 +340,7 @@ static void print_version(void)
static u64 parse_profile(char *s)
{
if (strcmp(s, "raid0") == 0) {
if (strcasecmp(s, "raid0") == 0) {
return BTRFS_BLOCK_GROUP_RAID0;
} else if (strcasecmp(s, "raid1") == 0) {
return BTRFS_BLOCK_GROUP_RAID1;