Home
last modified time | relevance | path

Searched refs:vdev_ops (Results 1 – 13 of 13) sorted by relevance

/titanic_41/usr/src/uts/common/fs/zfs/
H A Dvdev.c135 if (pvd->vdev_ops == &vdev_raidz_ops) in vdev_get_min_asize()
186 if (vd->vdev_ops->vdev_op_leaf) in vdev_count_leaves_impl()
342 vd->vdev_ops = ops; in vdev_alloc_common()
531 if (vd->vdev_ops->vdev_op_leaf && in vdev_alloc()
798 ASSERT(mvd->vdev_ops == &vdev_mirror_ops || in vdev_remove_parent()
799 mvd->vdev_ops == &vdev_replacing_ops || in vdev_remove_parent()
800 mvd->vdev_ops == &vdev_spare_ops); in vdev_remove_parent()
997 ASSERT(vd->vdev_ops->vdev_op_leaf); in vdev_probe()
1171 error = vd->vdev_ops->vdev_op_open(vd, &osize, &max_osize, &ashift); in vdev_open()
1217 if (vd->vdev_ishole || vd->vdev_ops == &vdev_missing_ops) in vdev_open()
[all …]
H A Dvdev_label.c222 fnvlist_add_string(nv, ZPOOL_CONFIG_TYPE, vd->vdev_ops->vdev_op_type); in vdev_config_generate()
241 ASSERT(strcmp(vd->vdev_ops->vdev_op_type, in vdev_config_generate()
316 if (!vd->vdev_ops->vdev_op_leaf) { in vdev_config_generate()
649 if (!vd->vdev_ops->vdev_op_leaf || !spa_writeable(spa)) in vdev_label_init()
922 if (vd->vdev_ops->vdev_op_leaf && vdev_readable(vd)) { in vdev_uberblock_load_impl()
1000 if (!vd->vdev_ops->vdev_op_leaf) in vdev_uberblock_sync()
1100 if (!vd->vdev_ops->vdev_op_leaf) in vdev_label_sync()
H A Dspa.c1192 if ((*vdp)->vdev_ops->vdev_op_leaf) in spa_config_parse()
1609 if (vd->vdev_ops->vdev_op_leaf && vdev_is_dead(vd) && in spa_check_removed()
1649 if (tvd->vdev_ops == &vdev_missing_ops && in spa_config_valid()
1650 mtvd->vdev_ops != &vdev_missing_ops && in spa_config_valid()
1683 if (tvd->vdev_ops == &vdev_missing_ops && in spa_config_valid()
1684 mtvd->vdev_ops != &vdev_missing_ops) { in spa_config_valid()
3343 if (!vd->vdev_ops->vdev_op_leaf) { in spa_validate_aux_devs()
3355 strcmp(vd->vdev_ops->vdev_op_type, VDEV_TYPE_DISK) != 0) { in spa_validate_aux_devs()
3770 if (vd->vdev_ops->vdev_op_leaf) { in spa_alt_rootvdev()
3893 if (bvd->vdev_parent->vdev_ops == &vdev_spare_ops && in spa_import_rootpool()
[all …]
H A Dzvol.c1133 if (vd->vdev_ops == &vdev_mirror_ops || in zvol_dumpio_vdev()
1134 vd->vdev_ops == &vdev_replacing_ops || in zvol_dumpio_vdev()
1135 vd->vdev_ops == &vdev_spare_ops) { in zvol_dumpio_vdev()
1147 if (!vd->vdev_ops->vdev_op_leaf && vd->vdev_ops != &vdev_raidz_ops) in zvol_dumpio_vdev()
1155 if (vd->vdev_ops == &vdev_raidz_ops) { in zvol_dumpio_vdev()
1912 ASSERT(vd->vdev_ops == &vdev_root_ops); in zvol_dump_init()
1929 if (vd->vdev_children > 1 || vd->vdev_ops == &vdev_raidz_ops) { in zvol_dump_init()
H A Dzfs_fm.c176 vd->vdev_ops->vdev_op_leaf && in zfs_ereport_start()
263 DATA_TYPE_STRING, vd->vdev_ops->vdev_op_type, NULL); in zfs_ereport_start()
282 DATA_TYPE_STRING, pvd->vdev_ops->vdev_op_type, in zfs_ereport_start()
H A Dvdev_mirror.c115 mm->mm_replacing = (vd->vdev_ops == &vdev_replacing_ops || in vdev_mirror_map_alloc()
116 vd->vdev_ops == &vdev_spare_ops); in vdev_mirror_map_alloc()
H A Dzio.c663 if (vd->vdev_ops == &vdev_hole_ops) { in zfs_blkptr_verify()
669 if (vd->vdev_ops == &vdev_missing_ops) { in zfs_blkptr_verify()
994 if (vd->vdev_ops->vdev_op_leaf && zio->io_logical != NULL) in zio_vdev_child_io()
1007 ASSERT(vd->vdev_ops->vdev_op_leaf); in zio_vdev_delegated_io()
2675 if (vd->vdev_ops->vdev_op_leaf && in zio_vdev_io_start()
2691 vd->vdev_ops->vdev_op_io_start(zio); in zio_vdev_io_start()
2699 vdev_ops_t *ops = vd ? vd->vdev_ops : &vdev_mirror_ops; in zio_vdev_io_done()
2708 if (vd != NULL && vd->vdev_ops->vdev_op_leaf) { in zio_vdev_io_done()
2808 if (zio->io_error && vd != NULL && vd->vdev_ops->vdev_op_leaf && in zio_vdev_io_assess()
2817 vd != NULL && !vd->vdev_ops->vdev_op_leaf) { in zio_vdev_io_assess()
[all …]
H A Dvdev_disk.c633 ASSERT(vd->vdev_ops == &vdev_disk_ops); in vdev_disk_physio()
H A Dmetaslab.c234 ASSERT3P(vd->vdev_ops, !=, &vdev_hole_ops); in metaslab_class_validate()
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h69 typedef struct vdev_ops { struct
140 vdev_ops_t *vdev_ops; /* vdev operations */ member
/titanic_41/usr/src/cmd/ztest/
H A Dztest.c2682 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool()
2786 ASSERT(oldvd->vdev_ops == &vdev_mirror_ops); in ztest_vdev_attach_detach()
2791 ASSERT(oldvd->vdev_ops == &vdev_raidz_ops); in ztest_vdev_attach_detach()
2863 if (pvd->vdev_ops != &vdev_mirror_ops && in ztest_vdev_attach_detach()
2864 pvd->vdev_ops != &vdev_root_ops && (!replacing || in ztest_vdev_attach_detach()
2865 pvd->vdev_ops == &vdev_replacing_ops || in ztest_vdev_attach_detach()
2866 pvd->vdev_ops == &vdev_spare_ops)) in ztest_vdev_attach_detach()
2931 ASSERT(vd->vdev_ops->vdev_op_leaf); in grow_vdev()
2962 ASSERT(vd->vdev_ops->vdev_op_leaf); in online_vdev()
3014 if (vd->vdev_ops->vdev_op_leaf) { in vdev_walk_tree()
[all …]
/titanic_41/usr/src/cmd/mdb/common/modules/zfs/
H A Dzfs.c1407 } else if (vdev.vdev_ops != NULL) { in do_print_vdev()
1410 (uintptr_t)vdev.vdev_ops) == -1) { in do_print_vdev()
1412 vdev.vdev_ops); in do_print_vdev()
/titanic_41/usr/src/cmd/zdb/
H A Dzdb.c611 if (vd->vdev_ops->vdev_op_leaf) { in get_dtl_refcount()
1034 vd->vdev_parent ? vd->vdev_ops->vdev_op_type : spa_name(spa), in dump_dtl()
3310 vd->vdev_ops->vdev_op_type); in zdb_read_block()