repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
e68b9ee6814b8b068cbe4dc84f87c81c367db901
1
#!/bin/bash
2
3
rm
-f
testfile.img
4
dd
if
=/
dev
/
zero of
=
testfile.img bs
=
1
M 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