diff -Narup glusterfs-9.6.sgi-ORIG/xlators/features/shard/src/shard.c glusterfs-9.6.sgi/xlators/features/shard/src/shard.c --- glusterfs-9.6.sgi-ORIG/xlators/features/shard/src/shard.c 2022-08-09 05:31:26.738079305 -0500 +++ glusterfs-9.6.sgi/xlators/features/shard/src/shard.c 2024-03-13 12:31:56.110756841 -0500 @@ -4852,8 +4852,11 @@ shard_readv_do_cbk(call_frame_t *frame, goto out; } - if (local->op_ret >= 0) + if (local->op_ret >= 0) { local->op_ret += op_ret; + /* gnfs requires op_errno to determine is_eof */ + local->op_errno = op_errno; + } shard_inode_ctx_get(anon_fd->inode, this, &ctx); block_num = ctx->block_num; diff -Narup glusterfs-9.6.sgi-ORIG/xlators/performance/io-cache/src/page.c glusterfs-9.6.sgi/xlators/performance/io-cache/src/page.c --- glusterfs-9.6.sgi-ORIG/xlators/performance/io-cache/src/page.c 2022-08-09 05:31:26.825079586 -0500 +++ glusterfs-9.6.sgi/xlators/performance/io-cache/src/page.c 2024-03-13 12:32:01.978748913 -0500 @@ -790,6 +790,8 @@ ioc_frame_unwind(call_frame_t *frame) GF_ASSERT(frame); local = frame->local; + /* gnfs requires op_errno to determine is_eof */ + op_errno = local->op_errno; if (local == NULL) { gf_smsg(frame->this->name, GF_LOG_WARNING, ENOMEM, IO_CACHE_MSG_LOCAL_NULL, NULL);