From 5b55286099a3e55ec85f93218cb372148b0f89e4 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Tue, 10 Mar 2026 13:58:49 +0100 Subject: [PATCH] virtio-devices: block: add another helpful log message Signed-off-by: Philipp Schuster On-behalf-of: SAP philipp.schuster@sap.com --- virtio-devices/src/block.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/virtio-devices/src/block.rs b/virtio-devices/src/block.rs index 0f6ca0882..22b8ef31e 100644 --- a/virtio-devices/src/block.rs +++ b/virtio-devices/src/block.rs @@ -182,6 +182,9 @@ impl BlockEpollHandler { // For virtio spec compliance // "A device MUST set the status byte to VIRTIO_BLK_S_IOERR for a write request // if the VIRTIO_BLK_F_RO feature if offered, and MUST NOT write any data." + warn!( + "Rejecting block request {request_type:?}: device is read-only (VIRTIO_BLK_F_RO negotiated)" + ); return Err(ExecuteError::ReadOnly); }