WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 02fbc5f

Browse files
authored
Merge pull request #4381 from qcheng-redhat/update_dd_cmd
Modify dd cmd options to make it more reliable to trigger I/O errors
2 parents 3faf824 + ad8b143 commit 02fbc5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qemu/tests/cfg/blockdev_mirror_src_no_space.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
post_command = "umount -f ${source_path} && rm -rf ${tmp_image_file} ${source_path}"
4141
pre_command_timeout = 30
4242
post_command_timeout = 30
43-
write_file_cmd = "dd if=/dev/urandom of=%s/file bs=1M count=200"
43+
write_file_cmd = "dd if=/dev/zero of=%s/file bs=1M count=200 oflag=direct"
4444
error_msg = "No space left on device"

0 commit comments

Comments
 (0)