| 152 | } |
| 153 | |
| 154 | static void |
| 155 | vdev_disk_error(zio_t *zio) |
| 156 | { |
| 157 | /* |
| 158 | * This function can be called in interrupt context, for instance while |
| 159 | * handling IRQs coming from a misbehaving disk device; use printk() |
| 160 | * which is safe from any context. |
| 161 | */ |
| 162 | printk(KERN_WARNING "zio pool=%s vdev=%s error=%d type=%d " |
| 163 | "offset=%llu size=%llu flags=%x\n", spa_name(zio->io_spa), |
| 164 | zio->io_vd->vdev_path, zio->io_error, zio->io_type, |
| 165 | (u_longlong_t)zio->io_offset, (u_longlong_t)zio->io_size, |
| 166 | zio->io_flags); |
| 167 | } |
| 168 | |
| 169 | static int |
| 170 | vdev_disk_open(vdev_t *v, uint64_t *psize, uint64_t *max_psize, |
no test coverage detected