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
6 changes: 5 additions & 1 deletion src/iosched/unified.c
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,11 @@ ssize_t _unified_insert_new_request(const char *buf, off_t offset, size_t count,
if (new_req->offset + new_req->count > dpr->file_size)
dpr->file_size = new_req->offset + new_req->count;

return (ssize_t)count;
/* Only copy_count bytes were stored (one cache block at most); the
* caller's append loop must advance by that, not the full count, or
* everything past the first block of a larger-than-blocksize write is
* silently dropped. */
return (ssize_t)copy_count;
}

/**
Expand Down
Loading