Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux/fpc-iii.git] / samples / bpf / test_override_return.sh
blobe68b9ee6814b8b068cbe4dc84f87c81c367db901
1 #!/bin/bash
3 rm -f testfile.img
4 dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
5 DEVICE=$(losetup --show -f testfile.img)
6 mkfs.btrfs -f $DEVICE
7 mkdir tmpmnt
8 ./tracex7 $DEVICE
9 if [ $? -eq 0 ]
10 then
11 echo "SUCCESS!"
12 else
13 echo "FAILED!"
15 losetup -d $DEVICE