MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / read_only

Method read_only

virtio-devices/src/block.rs:896–898  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

894 }
895
896 fn read_only(&self) -> bool {
897 has_feature(self.features(), VIRTIO_BLK_F_RO.into())
898 }
899
900 /// Returns the granularity for the advisory lock for this disk.
901 fn lock_granularity(&mut self) -> LockGranularity {

Callers 1

try_lock_imageMethod · 0.80

Calls 2

has_featureFunction · 0.85
featuresMethod · 0.45

Tested by

no test coverage detected