]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Wait for mdmon when it is stared via systemd
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Tue, 7 May 2024 03:38:56 +0000 (05:38 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 14 May 2024 09:08:06 +0000 (11:08 +0200)
commitaa1cc5815d2b14a8b47add18cfaa8264e19c10ce
tree19b8e321caa9d3107ca951b26c735e06372fea8c
parentb0f4e8e30f38d83f7e3f53d01d72d4cb3b4d42d7
Wait for mdmon when it is stared via systemd

When mdmon is being started it may need few seconds to start.
For now, we didn't wait for it. Introduce wait_for_mdmon()
function, which waits up to 5 seconds for mdmon to start completely.

Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Assemble.c
Grow.c
mdadm.h
util.c