Whamcloud - gitweb
LU-16025 llite: allow unaligned DIO reaching EOF
[fs/lustre-release.git] / lustre / utils / liblustreapi_layout.c
index bd2a055..6447d6f 100644 (file)
@@ -3293,6 +3293,8 @@ int llapi_mirror_resync_many_params(int fd, struct llapi_layout *layout,
                                                        &mirror_end);
                                if (rc < 0) {
                                        free(buf);
+                                       llapi_error(LLAPI_MSG_ERROR, rc,
+                                                   "cannot find source mirror");
                                        return rc;
                                }
                                src = rc;
@@ -3387,6 +3389,9 @@ do_read:
                }
                if (bytes_read < 0) {
                        rc = bytes_read;
+                       llapi_error(LLAPI_MSG_ERROR, rc,
+                                   "error reading bytes %ld-%ld of mirror %u",
+                                   pos, to_read, src);
                        break;
                }
                total_bytes_read += bytes_read;