Skip to content

Commit

Permalink
ksud: fix copy sparse file (#2374)
Browse files Browse the repository at this point in the history
  • Loading branch information
5ec1cff authored Jan 24, 2025
1 parent 38027c9 commit a953ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/ksud/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub fn copy_sparse_file<P: AsRef<Path>, Q: AsRef<Path>>(
for segment in segments {
if let SegmentType::Data = segment.segment_type {
let start = segment.start;
let end = segment.end;
let end = segment.end + 1;

src_file.seek(SeekFrom::Start(start))?;
dst_file.seek(SeekFrom::Start(start))?;
Expand Down

0 comments on commit a953ae9

Please sign in to comment.