]> git.ipfire.org Git - thirdparty/mdadm.git/commit
super1: remove support for name= in config
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 1 Feb 2024 11:32:41 +0000 (12:32 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 9 Feb 2024 08:06:33 +0000 (09:06 +0100)
commitdcc22ae74a864358b812327a423435b541789a36
treedaece989d4ce4bf2e57d964451ccdf4d9dde3a78
parent3f22931f23187f27a47a28afb5f4b7adf46d09aa
super1: remove support for name= in config

Only super1 provides "name=" to config. It is recoreded in metadata
so there is no need to duplicate same information.
UUID is our main key.

It is not used by Incremental and Assemble handles empty name well
because other supertypes don't set it in conf.

Expectation that the name in config is same as in metadata is bug prone.
Config should be the place where use can define customized settings.

Remove printing "name=" from mdadm config creation commands. Ignore
the name in config file to keep backward compatibility. Remove
description from man mdadm.conf.

Update 00conftest because "name" is no longer accepted.
As the name is ignored, error for mdadm --detail is not printed.

Reported-by: Stefan Fleischmann <sfle@kth.se>
Fixes: e2eb503bd797 ("mdadm: Follow POSIX Portable Character Set")
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
config.c
mdadm.conf.5.in
super1.c
tests/00confnames
tests/templates/names_template