btrfs-progs: tests: don't use fallocate in mkfs/014-rootdir-inline-extent
[platform/upstream/btrfs-progs.git] / tests / mkfs-tests / 014-rootdir-inline-extent / test.sh
index 167ced1..b337e49 100755 (executable)
@@ -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()