diff options
author | David Sterba <dsterba@suse.com> | 2018-03-21 16:42:28 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-03-30 22:15:54 +0200 |
commit | 82a1442e9cd025436be8ae65e684fd6b2701efbb (patch) | |
tree | f0bd24eb4f39b1d67a5ef15e3c132f2a5b46d00b | |
parent | 7edeb29c34704475889852d21ddfa6c1eaa60e24 (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>
-rwxr-xr-x | tests/mkfs-tests/014-rootdir-inline-extent/test.sh | 3 |
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() |