mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
d90f852ddf
commit
5b55286099
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user