Skip to content

Commit

Permalink
flush the source file of copy_file_range (#4436)
Browse files Browse the repository at this point in the history
  • Loading branch information
davies authored and SandyXSD committed Jun 19, 2024
1 parent f642c91 commit 6faccc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/vfs/vfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,10 @@ func (v *VFS) CopyFileRange(ctx Context, nodeIn Ino, fhIn, offIn uint64, nodeOut
defer hi.removeOp(ctx)
}

err = v.writer.Flush(ctx, nodeIn)
if err != 0 {
return
}
err = v.writer.Flush(ctx, nodeOut)
if err != 0 {
return
Expand Down

0 comments on commit 6faccc9

Please sign in to comment.