summaryrefslogtreecommitdiff
path: root/Create.c
diff options
context:
space:
mode:
authorJakub Radtke <jakub.radtke@intel.com>2021-01-15 00:47:00 -0500
committerJes Sorensen <jsorensen@fb.com>2021-03-09 17:18:02 -0500
commit848d71c91dc249098bdbbf319e25d319eb1d8e23 (patch)
treee7771d6efd6a70301b3d1ef200f24130c1197a55 /Create.c
parent19ad203ecbceca51120a8b8cabc202e1053f41b4 (diff)
downloadmdadm-848d71c91dc249098bdbbf319e25d319eb1d8e23.tar.gz
Create: Block automatic enabling bitmap for external metadata
For external metadata, bitmap should be added only when explicitly set by the administrator. They could be additional requirements to consider before enabling the external metadata's functionality (e.g., kernel support). Signed-off-by: Jakub Radtke <jakub.radtke@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Create.c b/Create.c
index b50cb24..18b5e64 100644
--- a/Create.c
+++ b/Create.c
@@ -540,6 +540,7 @@ int Create(struct supertype *st, char *mddev,
}
if (!s->bitmap_file &&
+ !st->ss->external &&
s->level >= 1 &&
st->ss->add_internal_bitmap &&
s->journaldisks == 0 &&