From ab8f4ca43f70a1c575cb38518b0b616086edff89 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 21 Jan 2009 10:59:06 -0800 Subject: [PATCH] Convert ASSERT() to VERIFY() for better coverage --- module/zfs/vdev_disk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c index 6ffa4b511b..94686d2cfd 100644 --- a/module/zfs/vdev_disk.c +++ b/module/zfs/vdev_disk.c @@ -468,8 +468,7 @@ vdev_disk_io_done(zio_t *zio) * asynchronous removal of the device. Otherwise, probe the device and * make sure it's still accessible. */ - if (zio->io_error == EIO) { - ASSERT(0); /* XXX: Not yet supported */ + VERIFY3S(zio->io_error, ==, 0); #if 0 vdev_t *vd = zio->io_vd; vdev_disk_t *dvd = vd->vdev_tsd; @@ -481,7 +480,6 @@ vdev_disk_io_done(zio_t *zio) spa_async_request(zio->io_spa, SPA_ASYNC_REMOVE); } #endif - } } vdev_ops_t vdev_disk_ops = {