We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e289bd commit 33643bfCopy full SHA for 33643bf
src/transport/fusedev/fuse_t_session.rs
@@ -260,10 +260,10 @@ impl FuseChannel {
260
}
261
262
fn read(&mut self, len: usize, offset: usize) -> Result<()> {
263
- let read_buf = &mut self.buf[offset..offset + len];
264
let mut total: usize = 0;
265
let fd = self.file.as_raw_fd();
266
while total < len {
+ let read_buf = &mut self.buf[offset + total..offset + len];
267
match read(fd, read_buf) {
268
Ok(size) => {
269
total += size;
0 commit comments