#!/bin/bash

for pool in 1 2 3 4 5 6 7
do
       	devdir=/tmp/ztest_$pool; 
	mkdir -pv $devdir; 
	cd $devdir; 
	for a in a-particular-long-named-device-backing-file-named-atrociously-raw{1,2,3,4,5,6,7,8,9,10}
	do 
		dd of=$a bs=1024M seek=1024 count=0 2>/dev/null
	done
	zpool create pool-$pool raidz $devdir/a-*
done

zpool iostat
zpool status -v | wc -l # this command should not hang anymore with the fix applied


