summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-03-16 18:08:33 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-30 16:26:27 +0200
commitc7f72072bd727914bceba74a31dfbb00ffdf069f (patch)
treeb75001ece6060de36146933a754174f0ae5e1ee3
parent7b80b7638605050898a7a324b9f30c70388205bb (diff)
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>
-rw-r--r--utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index 160bd734..0ba4ecbc 100644
--- a/utils.c
+++ b/utils.c
@@ -2461,9 +2461,7 @@ int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
if (dev_cnt > 1 &&
((metadata_profile | data_profile) & BTRFS_BLOCK_GROUP_DUP)) {
- fprintf(stderr,
- "ERROR: DUP is not allowed when FS has multiple devices\n");
- return 1;
+ warning("DUP is not recommended on filesystem with multiple devices");
}
if (metadata_profile & ~allowed) {
fprintf(stderr,