diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-03 17:31:11 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-03 17:31:11 -0500 |
commit | 2e1c1c3b4ace9788fa01004a453fc94347f1409c (patch) | |
tree | ea66409632188ba3716aa09983d2c5d8e54ed6b0 | |
parent | 6286d7d9d81509da4e65e908b1a57b3ec2ae9282 (diff) |
Add a config option to control DIO mode
In ~/.ktest_rc, ktest_dio=on may now be used to specify that qemu will
use O_DIRECT for accessing scratch devices.
-rw-r--r-- | lib/libktest.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libktest.sh b/lib/libktest.sh index edf22c4..c3f0364 100644 --- a/lib/libktest.sh +++ b/lib/libktest.sh @@ -27,6 +27,7 @@ ktest_crashdump=0 ktest_kgdb=0 ktest_ssh_port=0 ktest_networking=user +ktest_dio=off ktest_storage_bus=virtio-scsi-pci @@ -391,7 +392,7 @@ start_vm() qemu_disk file="$ktest_root_image",snapshot=on for file in "${ktest_images[@]}"; do - qemu_disk file="$file",cache=unsafe + qemu_disk file="$file",snapshot=on,cache.no-flush=on,cache.direct=$ktest_dio done for size in "${ktest_scratch_devs[@]}"; do |