virtio-devices: block: add another helpful log message

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
Philipp Schuster
2026-03-10 13:58:49 +01:00
committed by Rob Bradford
parent d90f852ddf
commit 5b55286099

View File

@@ -182,6 +182,9 @@ impl BlockEpollHandler {
// For virtio spec compliance // For virtio spec compliance
// "A device MUST set the status byte to VIRTIO_BLK_S_IOERR for a write request // "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." // 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); return Err(ExecuteError::ReadOnly);
} }