linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: mkfs: allow DUP on multidev fs, only warn
@ 2016-03-24 15:56 David Sterba
  2016-03-25  1:55 ` [PATCH] btrfs-progs: mkfs: fix an error when using DUP on multidev fs Satoru Takeuchi
  2016-03-25  1:59 ` [PATCH] btrfs-progs: mkfs: allow DUP on multidev fs, only warn Duncan
  0 siblings, 2 replies; 5+ messages in thread
From: David Sterba @ 2016-03-24 15:56 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

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>
---
 utils.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/utils.c b/utils.c
index eabc36dca7a1..9bc18d4508fc 100644
--- a/utils.c
+++ b/utils.c
@@ -2484,9 +2484,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,
-- 
2.7.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-30 14:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-24 15:56 [PATCH] btrfs-progs: mkfs: allow DUP on multidev fs, only warn David Sterba
2016-03-25  1:55 ` [PATCH] btrfs-progs: mkfs: fix an error when using DUP on multidev fs Satoru Takeuchi
2016-03-30 14:20   ` David Sterba
2016-03-25  1:59 ` [PATCH] btrfs-progs: mkfs: allow DUP on multidev fs, only warn Duncan
2016-03-25  3:58   ` Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).