]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
Compile-time switch to enable 0.9 metadata as default
authormartin f. krafft <madduck@debian.org>
Fri, 28 May 2010 12:12:41 +0000 (14:12 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 31 May 2010 02:52:37 +0000 (12:52 +1000)
commit26f467a9548dcebe07d576deb6ceb02b947eaecc
treeb3ab159f6a3875b9af96733a61c30f641d961a2c
parent5082750467726d7cad6059ee8a41713da23426d3
Compile-time switch to enable 0.9 metadata as default

This commit introduces DEFAULT_OLD_METADATA as a preprocessor
definition. If defined, it causes mdadm to assume metadata version 0.9
as default. If not defined, version 1.x (currently 1.2) is used as
default.

The man page mdadm.8 is also modified to reflect the chosen default.

The selftests will not work if the old default is chosen.

This patch was requested by Debian so they could distribute a current
mdadm together with boot loaders that only understand 0.90 metadata
for md-raid.

Preferred usage is simply
   make DEFAULT_OLD_METADATA=yes

Signed-off-by: martin f. krafft <madduck@debian.org>
Signed-off-by: NeilBrown <neilb@suse.de>
Makefile
mdadm.8.in [moved from mdadm.8 with 99% similarity]
super0.c
super1.c