projects
/
linux-block.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'bpf-Fix-bugs-in-sock_ops-samples'
[linux-block.git]
/
samples
/
bpf
/
test_override_return.sh
1
#!/bin/bash
2
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!"
14
fi
15
losetup -d $DEVICE