MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / write_at

Method write_at

api/src/vfs/dev/loop.rs:72–79  ·  view source on GitHub ↗
(&self, buf: &[u8], offset: u64)

Source from the content-addressed store, hash-verified

70 }
71
72 fn write_at(&self, buf: &[u8], offset: u64) -> VfsResult<usize> {
73 if self.ro.load(Ordering::Relaxed) {
74 return Err(AxError::ReadOnlyFilesystem);
75 }
76 let file = self.file.lock().clone();
77 file.ok_or(AxError::OperationNotPermitted)?
78 .write_at(buf, offset)
79 }
80
81 fn ioctl(&self, cmd: u32, arg: usize) -> VfsResult<usize> {
82 match cmd {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected