Skip to content

Commit fd63d96

Browse files
lsc2001imeoer
authored andcommitted
Fix fuse out header len in notify_resend
OutHeader::len is not correctly filled in notify_resend, which causes EINVAL error. This commit fixes it. Signed-off-by: Sicheng Liu <[email protected]>
1 parent 93df9d2 commit fd63d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/server/sync_io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ impl<F: FileSystem + Sync> Server<F> {
9696
let mut buffer_writer = w.split_at(0).map_err(Error::FailedToSplitWriter)?;
9797
let header = {
9898
OutHeader {
99+
len: std::mem::size_of::<OutHeader>() as u32,
99100
unique: 0,
100101
error: NotifyOpcode::Resend as i32,
101-
..Default::default()
102102
}
103103
};
104104
buffer_writer

0 commit comments

Comments
 (0)