]> git.proxmox.com Git - mirror_zfs.git/blobdiff - tests/zfs-tests/tests/functional/trim/trim_config.ksh
Add trim support to zpool wait
[mirror_zfs.git] / tests / zfs-tests / tests / functional / trim / trim_config.ksh
index ba36edabfac559fb27586b98ddbbebc648a4d862..44f187cc646cdc502258014c71d40e036fa9711a 100755 (executable)
@@ -92,8 +92,7 @@ for type in "" "mirror" "raidz2"; do
 
        # Remove the file, issue trim, verify the vdevs are now sparse.
        log_must rm /$TESTPOOL/file
-       log_must zpool trim $TESTPOOL
-       wait_trim $TESTPOOL $VDEVS
+       log_must timeout 120 zpool trim -w $TESTPOOL
        verify_vdevs "-le" "$VDEV_MIN_MB" $VDEVS
 
        log_must zpool destroy $TESTPOOL