]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Create: don't default to bitmap=internal when it is not supported
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Tue, 15 Apr 2014 08:01:44 +0000 (10:01 +0200)
committerNeilBrown <neilb@suse.de>
Thu, 1 May 2014 00:14:59 +0000 (10:14 +1000)
commit39917e56ccbabe0b53771ea698c1284b14c62fa3
tree4f9a162cb545270a9bcf8cc47f29faf684130945
parent19ad4b2cb2f95202f615af57184c702fb098c011
Create: don't default to bitmap=internal when it is not supported

For large arrays (component size > 100GB) if write-intent bitmap is not
enabled, then it is set by default to "internal", even if the metadata
format does support internal bitmaps, which causes Create to fail.

This patch adds checking if add_internal_bitmap is set in the
superswitch before setting bitmap_file to "internal".

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Create.c