K 10 svn:author V 7 asomers K 8 svn:date V 27 2015-12-15T23:49:29.327307Z K 7 svn:log V 1779 Fix problems with disks disappearing during the ZFS tests, fix some other ZFS test problems while I'm at it. tests/sys/cddl/zfs/include/libsas.kshlib Make "i" a local instead of global variable in find_verify_sas_disk. The global definition of i was shadowing the local definition, causing find_verify_sas_disk to fail to find the disk. I think that the local variable would've shadowed the global instead of the other way around, but in this case another function explicitly typeset i an integer type, and find_verify_sas_disk was trying to set it to a string. The problem only happened if find_verify_sas_disk was called after wait_until_resilvered, which is why it's hard to notice. tests/sys/cddl/zfs/tests/hotspare/hotspare.kshlib Eliminate harmless error message on cleanup tests/sys/cddl/zfs/tests/zfsd/zfsd_replace_001_pos.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd.cfg tests/sys/cddl/zfs/tests/zfsd/zfsd_test.sh Fix zfsd_replace_001_pos, which has been marked as an expected failure for a long time. It was failing because the parallel dd processes finished too quickly, so the test assumed that they had crashed. But there's really no reason why they need to be parallel, so I just replaced them with a single process. tests/sys/cddl/zfs/tests/zfsd/zfsd.kshlib tests/sys/cddl/zfs/tests/zfsd/zfsd_autoreplace_001_neg.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd_autoreplace_002_pos.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd_autoreplace_003_pos.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_004_pos.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd_hotspare_007_pos.ksh tests/sys/cddl/zfs/tests/zfsd/zfsd_import_001_pos.ksh Merge common cleanup code into one place. Add a "camcontrol smpphylist" commmand for debugging purposes. Sponsored by: Spectra Logic Corp END