Method
write_at
(&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
Tested by
no test coverage detected