mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
testsuite: Add and document a 'should' for "idle" -> "recover" RAID test
When a "recover" is just starting for a RAID LV, it is possible to get "idle" for the sync action if the status is issued quickly enough. This is fine, the MD thread just hasn't gotten things going yet. However, the /need/ for a "recover" should be marked in md->recovery and it would be simple enough to fix the kernel so this doesn't happen. May eventually want a separate bug for this, but for now it fits with RHBZ 1507719.
This commit is contained in:
parent
58b763c99c
commit
5013032845
@ -83,7 +83,12 @@ while true; do
|
||||
# If the sync operation ("recover" in this case) is not
|
||||
# finished, then it better be as follows:
|
||||
[ "${a[5]}" = "Aa" ]
|
||||
[ "${a[7]}" = "recover" ]
|
||||
|
||||
# Might be transitioning from "idle" to "recover".
|
||||
# Kernel could check mddev->recovery for the intent to
|
||||
# begin a "recover" and report that... probably would be
|
||||
# better. RHBZ 1507719
|
||||
should [ "${a[7]}" = "recover" ]
|
||||
else
|
||||
# Tough to tell the INVALID case,
|
||||
# Before starting sync thread: "Aa X/X recover"
|
||||
|
Loading…
x
Reference in New Issue
Block a user