]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: do not allow leading dot in MD device name
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Mon, 15 Jul 2024 10:29:24 +0000 (12:29 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 19 Jul 2024 13:34:19 +0000 (15:34 +0200)
commit998544c198c156db027a6e4f1b201910b138041e
treef282054dd5b1bd9b9be66372393afba7f3215478
parentda7aecdf25371e1476da4ec56e9ec5ddf13af5da
mdadm: do not allow leading dot in MD device name

Do not allow to use '.' on first place for named MD device.
Having leading dot might be confusing, MD device cannot be hidden.
It also removes possibility to create md device with name '.'.

Additionally, code optimalizations are done.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
config.c