From 4d0aa530f286c7336cde9f6bd680bea39da13ef5 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 23 Apr 2026 15:52:56 +0200 Subject: [PATCH] fuzz: Use RawDisk for block fuzz target Update the fuzz target to use RawDisk instead of RawFileDiskSync, consistent with the unified API. Signed-off-by: Anatol Belski --- fuzz/fuzz_targets/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzz/fuzz_targets/block.rs b/fuzz/fuzz_targets/block.rs index 20717b2cf..0d131b935 100644 --- a/fuzz/fuzz_targets/block.rs +++ b/fuzz/fuzz_targets/block.rs @@ -16,7 +16,7 @@ use std::sync::Arc; use std::{ffi, io}; use block::fcntl::LockGranularityChoice; -use block::raw_sync::RawFileDiskSync; +use block::raw_disk::{RawBackend, RawDisk}; use libfuzzer_sys::{fuzz_target, Corpus}; use seccompiler::SeccompAction; use virtio_devices::{Block, VirtioDevice, VirtioInterrupt, VirtioInterruptType}; @@ -54,7 +54,7 @@ fuzz_target!(|bytes: &[u8]| -> Corpus { let queue_affinity = BTreeMap::new(); let mut block = Block::new( "tmp".to_owned(), - Box::new(RawFileDiskSync::new(disk_file)), + Box::new(RawDisk::new(disk_file, RawBackend::Sync)), PathBuf::from(""), false, false,