Skip to content

Commit

Permalink
Merge pull request #816 from wangvsa/dev
Browse files Browse the repository at this point in the history
Add a debug output for pread
  • Loading branch information
kathrynmohror authored Jul 12, 2024
2 parents 6730bb2 + ee836d6 commit 3ffd297
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/unifyfs-sysio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,9 @@ ssize_t UNIFYFS_WRAP(pread)(int fd, void* buf, size_t count, off_t offset)
return (ssize_t)(-1);
}

LOGDBG("pread - fd=%d offset=%zu count=%zu",
fd, (size_t)offset, count);

/* TODO: handle error if sync fails? */
/* sync data for file before reading, if needed */
unifyfs_fid_sync_extents(posix_client, fid);
Expand Down

0 comments on commit 3ffd297

Please sign in to comment.