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