projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7edeb29
)
btrfs-progs: tests: don't use fallocate in mkfs/014-rootdir-inline-extent
author
David Sterba
<dsterba@suse.com>
Wed, 21 Mar 2018 15:42:28 +0000
(16:42 +0100)
committer
David Sterba
<dsterba@suse.com>
Fri, 30 Mar 2018 20:15:54 +0000
(22:15 +0200)
If fallocate is not supported, this test fails. Use a shell trick to
fill with given number of bytes.
Signed-off-by: David Sterba <dsterba@suse.com>
tests/mkfs-tests/014-rootdir-inline-extent/test.sh
patch
|
blob
|
history
diff --git
a/tests/mkfs-tests/014-rootdir-inline-extent/test.sh
b/tests/mkfs-tests/014-rootdir-inline-extent/test.sh
index
167ced1
..
b337e49
100755
(executable)
--- a/
tests/mkfs-tests/014-rootdir-inline-extent/test.sh
+++ b/
tests/mkfs-tests/014-rootdir-inline-extent/test.sh
@@
-4,7
+4,6
@@
source "$TEST_TOP/common"
-check_global_prereq fallocate
check_prereq mkfs.btrfs
prepare_test_dev
@@
-16,7
+15,7
@@
create_file()
{
local size=$1
# Reuse size as filename
-
run_check fallocate -l $size
"$tmp/$size"
+
eval printf "%0.sx" {1..$size} >
"$tmp/$size"
}
test_mkfs_rootdir()