Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl Uffd {
let _ =
raw::copy(self.as_raw_fd(), &mut copy as *mut raw::uffdio_copy).map_err(|errno| {
match errno {
Errno::EAGAIN => Error::PartiallyCopied(copy.copy as usize),
Errno::EAGAIN if copy.copy > 0 => Error::PartiallyCopied(copy.copy as usize),
_ => Error::CopyFailed(errno),
}
})?;
Expand Down
Loading