Skip to content

Commit

Permalink
Comment movement and indent avoidance.
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
  • Loading branch information
rincebrain committed May 14, 2021
1 parent 893a132 commit 4e76c26
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/libzutil/zutil_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,16 +1005,15 @@ zpool_read_label(int fd, nvlist_t **config, int *num_labels)
}

if (lio_listio(LIO_WAIT, aiocbps, VDEV_LABELS, NULL) != 0) {
/*
* A portion of the requests may have
* been submitted. Clean them up.
*/
int saved_errno = errno;
boolean_t do_slow = B_FALSE;
error = -1;

if (saved_errno == EAGAIN || saved_errno == EINTR ||
saved_errno == EIO) {
if (errno == EAGAIN || errno == EINTR || errno == EIO) {
/*
* A portion of the requests may have
* been submitted. Clean them up.
*/
for (l = 0; l < VDEV_LABELS; l++) {
errno = 0;
switch (aio_error(&aiocbs[l])) {
Expand Down

0 comments on commit 4e76c26

Please sign in to comment.