summaryrefslogtreecommitdiff
path: root/tests/mkfs-tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-03-21 16:42:28 +0100
committerDavid Sterba <dsterba@suse.com>2018-03-30 22:15:54 +0200
commit82a1442e9cd025436be8ae65e684fd6b2701efbb (patch)
treef0bd24eb4f39b1d67a5ef15e3c132f2a5b46d00b /tests/mkfs-tests
parent7edeb29c34704475889852d21ddfa6c1eaa60e24 (diff)
btrfs-progs: tests: don't use fallocate in mkfs/014-rootdir-inline-extent
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>
Diffstat (limited to 'tests/mkfs-tests')
-rwxr-xr-xtests/mkfs-tests/014-rootdir-inline-extent/test.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/mkfs-tests/014-rootdir-inline-extent/test.sh b/tests/mkfs-tests/014-rootdir-inline-extent/test.sh
index 167ced1e..b337e493 100755
--- 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()