]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zfs/vdev_disk.c
Illumos #3598
[mirror_zfs.git] / module / zfs / vdev_disk.c
index 2869716155f634fa41a02dd0a9851976fb0b0efb..d845f59c4136578e2094e42f6239cd56c677d354 100644 (file)
@@ -23,6 +23,7 @@
  * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
  * Rewritten for Linux by Brian Behlendorf <behlendorf1@llnl.gov>.
  * LLNL-CODE-403049.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
  */
 
 #include <sys/zfs_context.h>
@@ -656,7 +657,7 @@ vdev_disk_io_start(zio_t *zio)
        case ZIO_TYPE_IOCTL:
 
                if (!vdev_readable(v)) {
-                       zio->io_error = ENXIO;
+                       zio->io_error = SET_ERROR(ENXIO);
                        return ZIO_PIPELINE_CONTINUE;
                }
 
@@ -667,7 +668,7 @@ vdev_disk_io_start(zio_t *zio)
                                break;
 
                        if (v->vdev_nowritecache) {
-                               zio->io_error = ENOTSUP;
+                               zio->io_error = SET_ERROR(ENOTSUP);
                                break;
                        }
 
@@ -682,7 +683,7 @@ vdev_disk_io_start(zio_t *zio)
                        break;
 
                default:
-                       zio->io_error = ENOTSUP;
+                       zio->io_error = SET_ERROR(ENOTSUP);
                }
 
                return ZIO_PIPELINE_CONTINUE;
@@ -696,7 +697,7 @@ vdev_disk_io_start(zio_t *zio)
                break;
 
        default:
-               zio->io_error = ENOTSUP;
+               zio->io_error = SET_ERROR(ENOTSUP);
                return ZIO_PIPELINE_CONTINUE;
        }