In this test, the cleaner thread deletes the directory trees created
by fsstress in order to exercise the free inode btree code.
However, if fsstress dies, the cleaner can end up waiting forever
for a directory that will never be created, which hangs up the test
run. Therefore, abort if fsstress has ended.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
while [ ! -e $need ]
do
sleep 3
+ if ! pgrep fsstress > /dev/null 2>&1; then
+ echo "fsstress died?"
+ return
+ fi
done
rm -rf $dir/dir$i