master - tests: fix raid rebuild tests to work with older target versions
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f2efd04052c9cdd86d636e77e645db778935fdc8 Commit: f2efd04052c9cdd86d636e77e645db778935fdc8 Parent: 38a6a39daa2967970da0017ac96e40af1c7fbc7b Author: Heinz Mauelshagen <[email protected]> AuthorDate: Thu Sep 22 23:35:37 2016 +0200 Committer: Heinz Mauelshagen <[email protected]> CommitterDate: Thu Sep 22 23:35:37 2016 +0200
tests: fix raid rebuild tests to work with older target versions
Pre 1.9 dm-raid targets status output was racy, which caused the device status chars to be unreliable _during_ synchronization. This shows paritcularly with tiny test devices used.
Enhance lvchange-rebuild-raid.sh to not check status chars _during_ synchronization. Just check afterwards.
--- WHATS_NEW | 1 + test/shell/lvchange-rebuild-raid.sh | 42 ++++++++++++++++++++++++---------- 2 files changed, 30 insertions(+), 13 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.166 - ===================================== + Fix lvchange-rebuild-raid.sh to cope with older target versions. Use dm_config_parse_without_dup_node_check() to speedup metadata reading. Fix lvconvert --repair regression Fix reported origin lv field for cache volumes. (2.02.133)
test/shell/lvchange-rebuild-raid.sh +29 -13
128 lines not on this page · raw message