1#!/bin/bash
2
3rm -f testfile.img
4dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
5DEVICE=$(losetup --show -f testfile.img)
6mkfs.btrfs -f $DEVICE
7mkdir tmpmnt
8./tracex7 $DEVICE
9if [ $? -eq 0 ]
10then
11	echo "SUCCESS!"
12else
13	echo "FAILED!"
14fi
15losetup -d $DEVICE
16