Print this page
expandable RAID-Z


 299                 vd->vdev_is_failing = B_TRUE;
 300 
 301         vdev_queue_io_done(zio);
 302 
 303 #ifndef _KERNEL
 304         if (zio->io_type == ZIO_TYPE_WRITE)
 305                 vdev_cache_write(zio);
 306 #endif
 307 
 308         return (ZIO_PIPELINE_CONTINUE);
 309 }
 310 
 311 vdev_ops_t vdev_file_ops = {
 312         vdev_file_open,
 313         vdev_file_close,
 314         vdev_file_probe,
 315         vdev_default_asize,
 316         vdev_file_io_start,
 317         vdev_file_io_done,
 318         NULL,

 319         VDEV_TYPE_FILE,         /* name of this vdev type */
 320         B_TRUE                  /* leaf vdev */
 321 };
 322 
 323 /*
 324  * From userland we access disks just like files.
 325  */
 326 #ifndef _KERNEL
 327 
 328 vdev_ops_t vdev_disk_ops = {
 329         vdev_file_open,
 330         vdev_file_close,
 331         vdev_file_probe,
 332         vdev_default_asize,
 333         vdev_file_io_start,
 334         vdev_file_io_done,
 335         NULL,
 336         VDEV_TYPE_DISK,         /* name of this vdev type */
 337         B_TRUE                  /* leaf vdev */
 338 };


 299                 vd->vdev_is_failing = B_TRUE;
 300 
 301         vdev_queue_io_done(zio);
 302 
 303 #ifndef _KERNEL
 304         if (zio->io_type == ZIO_TYPE_WRITE)
 305                 vdev_cache_write(zio);
 306 #endif
 307 
 308         return (ZIO_PIPELINE_CONTINUE);
 309 }
 310 
 311 vdev_ops_t vdev_file_ops = {
 312         vdev_file_open,
 313         vdev_file_close,
 314         vdev_file_probe,
 315         vdev_default_asize,
 316         vdev_file_io_start,
 317         vdev_file_io_done,
 318         NULL,
 319         NULL,
 320         VDEV_TYPE_FILE,         /* name of this vdev type */
 321         B_TRUE                  /* leaf vdev */
 322 };
 323 
 324 /*
 325  * From userland we access disks just like files.
 326  */
 327 #ifndef _KERNEL
 328 
 329 vdev_ops_t vdev_disk_ops = {
 330         vdev_file_open,
 331         vdev_file_close,
 332         vdev_file_probe,
 333         vdev_default_asize,
 334         vdev_file_io_start,
 335         vdev_file_io_done,
 336         NULL,
 337         VDEV_TYPE_DISK,         /* name of this vdev type */
 338         B_TRUE                  /* leaf vdev */
 339 };