Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/bash
0002 
0003 rm -r tmpmnt
0004 rm -f testfile.img
0005 dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
0006 DEVICE=$(losetup --show -f testfile.img)
0007 mkfs.btrfs -f $DEVICE
0008 mkdir tmpmnt
0009 ./tracex7 $DEVICE
0010 if [ $? -eq 0 ]
0011 then
0012         echo "SUCCESS!"
0013 else
0014         echo "FAILED!"
0015 fi
0016 losetup -d $DEVICE