#!/bin/bash -x while [ 1 ]; do zpool import -d /root/ssd/zpool_test3 ztest3 rsync -av -P /root/ssd/linux-4.15.y /ztest3/vol1/ zfs snapshot ztest3/vol1@now1 rm -rf /ztest3/vol1/* zpool trim ztest3 rsync -av -P /root/ssd/ccache/dev-toolset4 /ztest3/vol1/ zfs snapshot ztest3/vol1@now2 rm -rf /ztest3/vol1/* zpool trim ztest3 zpool export ztest3 zpool import -d /root/ssd/zpool_test3 ztest3 zfs destroy ztest3/vol1@now1 zfs destroy ztest3/vol1@now2 zpool trim ztest3 zpool export ztest3 done