Skip to content

Commit 3ffd297

Browse files
Merge pull request #816 from wangvsa/dev
Add a debug output for pread
2 parents 6730bb2 + ee836d6 commit 3ffd297

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/src/unifyfs-sysio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,6 +2059,9 @@ ssize_t UNIFYFS_WRAP(pread)(int fd, void* buf, size_t count, off_t offset)
20592059
return (ssize_t)(-1);
20602060
}
20612061

2062+
LOGDBG("pread - fd=%d offset=%zu count=%zu",
2063+
fd, (size_t)offset, count);
2064+
20622065
/* TODO: handle error if sync fails? */
20632066
/* sync data for file before reading, if needed */
20642067
unifyfs_fid_sync_extents(posix_client, fid);

0 commit comments

Comments
 (0)