diff options
author | David Sterba <dsterba@suse.com> | 2017-03-01 17:16:46 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:49 +0100 |
commit | 839de9c033f3f6ecda2f61fcbcd1dfafc0e68125 (patch) | |
tree | 5254b0ebdb249ff60f8f75847ee99d7397786a90 /tests | |
parent | 62d4aa5fbabaa2068d2c25802c480070ac05aa26 (diff) |
btrfs-progs: tests: use dd in 025-file-extents for creating files
Drop the dependency on xfs_io as it's not a standard tool, though it
provides convenience. We use a simple write here so dd can manage.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fsck-tests/025-file-extents/test.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fsck-tests/025-file-extents/test.sh b/tests/fsck-tests/025-file-extents/test.sh index 37173ebd..290464e0 100755 --- a/tests/fsck-tests/025-file-extents/test.sh +++ b/tests/fsck-tests/025-file-extents/test.sh @@ -5,7 +5,7 @@ source $TOP/tests/common check_prereq btrfs check_prereq mkfs.btrfs -check_global_prereq xfs_io +check_global_prereq dd check_global_prereq fallocate setup_root_helper @@ -20,7 +20,7 @@ test_paritical_write_into_prealloc() run_check $SUDO_HELPER fallocate -l 128K "$TEST_MNT/file" sync - run_check $SUDO_HELPER xfs_io -c "pwrite 0 64K" "$TEST_MNT/file" + run_check $SUDO_HELPER dd conv=notrunc if=/dev/zero of="$TEST_MNT/file" bs=1K count=64 run_check_umount_test_dev run_check "$TOP/btrfs" check "$TEST_DEV" } @@ -33,7 +33,7 @@ test_compressed_inline_extent() run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f "$TEST_DEV" run_check_mount_test_dev -o compress=lzo,max_inline=2048 - run_check $SUDO_HELPER xfs_io -f -c "pwrite 0 1K" "$TEST_MNT/file" + run_check $SUDO_HELPER dd conv=notrunc if=/dev/null of="$TEST_MNT/file" bs=1K count=1 run_check_umount_test_dev run_check "$TOP/btrfs" check "$TEST_DEV" } |