]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Mdmonitor: Omit non-md devices
authorLukasz Florczak <lukasz.florczak@linux.intel.com>
Thu, 22 Sep 2022 06:29:50 +0000 (08:29 +0200)
committerJes Sorensen <jsorensen@fb.com>
Thu, 29 Sep 2022 15:12:10 +0000 (11:12 -0400)
commit8b668d4aa3305af5963162b7499b128bd71f8f29
treed7207816bef6db14891b75a5ab20ac5451a800dc
parent6f2af6a48c541f207cb727a31fb86de2cd04fc21
Mdmonitor: Omit non-md devices

Fix segfault commit [1] introduced check whether given device is
mddevice, but it happend to terminate Mdmonitor if at least one of given
devices didn't fulfill that condition. In result Mdmonitor service was
no longer started on boot (with --scan option) when config contained some
non-existent array entry.

This commit introduces ommiting non-md devices so scan option can still
be used when config is wrong and allow Mdmonitor service to run on boot.

Giving a list of devices to monitor containing non-existing or
non-md devices will result in monitoring only confirmed mddevices.

[1] https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=e702f392959d1c2ad2089e595b52235ed97b4e18

Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Monitor.c