mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-02 17:01:25 +00:00
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>
This commit is contained in:
parent
7edeb29c34
commit
82a1442e9c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user