btrfs-progs: mkfs: allow DUP on multidev fs, only warn
The DUP profile can work on multiple filesystems, the limitation is rather artificial. Let the user make the decision and print a warning. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7b80b76386
commit
c7f72072bd
4
utils.c
4
utils.c
|
@ -2461,9 +2461,7 @@ int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
|
||||||
|
|
||||||
if (dev_cnt > 1 &&
|
if (dev_cnt > 1 &&
|
||||||
((metadata_profile | data_profile) & BTRFS_BLOCK_GROUP_DUP)) {
|
((metadata_profile | data_profile) & BTRFS_BLOCK_GROUP_DUP)) {
|
||||||
fprintf(stderr,
|
warning("DUP is not recommended on filesystem with multiple devices");
|
||||||
"ERROR: DUP is not allowed when FS has multiple devices\n");
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
if (metadata_profile & ~allowed) {
|
if (metadata_profile & ~allowed) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
|
Loading…
Reference in New Issue