mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-27 16:02:56 +00:00
btrfs-progs: mkfs: also parse raid0 profile case-insensitive
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
cc25de4aa7
commit
ded784f416
2
mkfs.c
2
mkfs.c
@ -340,7 +340,7 @@ static void print_version(void)
|
|||||||
|
|
||||||
static u64 parse_profile(char *s)
|
static u64 parse_profile(char *s)
|
||||||
{
|
{
|
||||||
if (strcmp(s, "raid0") == 0) {
|
if (strcasecmp(s, "raid0") == 0) {
|
||||||
return BTRFS_BLOCK_GROUP_RAID0;
|
return BTRFS_BLOCK_GROUP_RAID0;
|
||||||
} else if (strcasecmp(s, "raid1") == 0) {
|
} else if (strcasecmp(s, "raid1") == 0) {
|
||||||
return BTRFS_BLOCK_GROUP_RAID1;
|
return BTRFS_BLOCK_GROUP_RAID1;
|
||||||
|
Loading…
Reference in New Issue
Block a user