Skip to content

Commit

Permalink
It's all about style, naturally.
Browse files Browse the repository at this point in the history
  • Loading branch information
rincebrain committed May 15, 2021
1 parent 4e76c26 commit 11bb4f4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/libzutil/zutil_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,24 +1011,24 @@ zpool_read_label(int fd, nvlist_t **config, int *num_labels)

if (errno == EAGAIN || errno == EINTR || errno == EIO) {
/*
* A portion of the requests may have
* been submitted. Clean them up.
* 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])) {
case EINVAL:
break;
case EINPROGRESS:
// This shouldn't be possible to
// encounter, die if we do.
ASSERT(B_FALSE);
case EOPNOTSUPP:
case ENOSYS:
do_slow = B_TRUE;
case 0:
default:
(void) aio_return(&aiocbs[l]);
case EINVAL:
break;
case EINPROGRESS:
// This shouldn't be possible to
// encounter, die if we do.
ASSERT(B_FALSE);
case EOPNOTSUPP:
case ENOSYS:
do_slow = B_TRUE;
case 0:
default:
(void) aio_return(&aiocbs[l]);
}
}
}
Expand Down

0 comments on commit 11bb4f4

Please sign in to comment.