]> git.ipfire.org Git - thirdparty/mdadm.git/commit
test: make 'check wait' more reliable.
authorNeilBrown <neilb@suse.de>
Thu, 28 May 2015 06:53:26 +0000 (16:53 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 28 May 2015 07:00:36 +0000 (17:00 +1000)
commit4a859abdc9dfd8f3de42e748a8ed96a14f8c9339
tree73a6be50be270d2c6295a275c7877cb68c72cb11
parent7d1dda2c5557206fc12ee186693678ef80ff74cb
test: make 'check wait' more reliable.

'recover' etc doesn't appear in /proc/mdstat immediately.
The "sync" thread must be started first.
But 'sync_action' shows it as soon as MD_RECOVERY_NEEDED is set
in the kernel.  So look there too.

Now maybe I can get rid of some of those silly 'sleep' calls.

Signed-off-by: NeilBrown <neilb@suse.de>
test