Home
last modified time | relevance | path

Searched refs:vdev_ashift (Results 1 – 15 of 15) sorted by relevance

/freebsd-13.1/sys/contrib/openzfs/module/zfs/
H A Dvdev.c1267 mvd->vdev_ashift = cvd->vdev_ashift; in vdev_add_parent()
1300 cvd->vdev_ashift = mvd->vdev_ashift; in vdev_remove_parent()
1387 spa->spa_max_ashift = vd->vdev_ashift; in vdev_metaslab_group_create()
1857 vd->vdev_ashift = MIN( in vdev_ashift_optimize()
1873 vd->vdev_ashift); in vdev_ashift_optimize()
2059 if (vd->vdev_ashift == 0) { in vdev_open()
2072 if (vd->vdev_ashift != 0 && (vd->vdev_ashift < ASHIFT_MIN || in vdev_open()
2073 vd->vdev_ashift > ASHIFT_MAX)) { in vdev_open()
2082 if (vd->vdev_ashift > vd->vdev_top->vdev_ashift && in vdev_open()
3540 vd->vdev_ashift); in vdev_load()
[all …]
H A Dvdev_draid.c583 uint64_t ashift = vd->vdev_ashift; in vdev_draid_asize()
651 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write()
698 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub()
903 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical()
961 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row()
1197 return (vdc->vdc_ndata << vd->vdev_ashift); in vdev_draid_min_alloc()
1498 logical_ashift = MAX(logical_ashift, cvd->vdev_ashift); in vdev_draid_calculate_asize()
1624 uint64_t ashift = vd->vdev_ashift; in vdev_draid_rebuild_asize()
1662 uint64_t sz = vdc->vdc_groupwidth << vd->vdev_ashift; in vdev_draid_metaslab_init()
1747 cvd->vdev_ashift); in vdev_draid_spare_create()
[all …]
H A Dmetaslab.c1028 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_verify()
1065 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_add()
1089 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_remove()
2595 *shift = vdev->vdev_ashift; in metaslab_calculate_range_tree_type()
2673 ms->ms_size, vd->vdev_ashift); in metaslab_init()
3127 uint8_t shift = mg->mg_vd->vdev_ashift; in metaslab_segment_weight()
3557 uint64_t vdev_blocksize = 1 << vd->vdev_ashift; in metaslab_should_condense()
4586 VERIFY0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in metaslab_block_alloc()
5326 VERIFY0(P2PHASE(asize, 1ULL << vd->vdev_ashift)); in metaslab_free_concrete()
5573 VERIFY0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in metaslab_unalloc_dva()
[all …]
H A Dvdev_raidz.c1428 *logical_ashift = MAX(*logical_ashift, cvd->vdev_ashift); in vdev_raidz_open()
1458 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize()
1516 rc->rc_size + (1 << tvd->vdev_ashift)); in vdev_raidz_io_verify()
1632 raidz_map_t *rm = vdev_raidz_map_alloc(zio, tvd->vdev_ashift, in vdev_raidz_io_start()
1645 vdev_raidz_io_start_write(zio, rr, tvd->vdev_ashift); in vdev_raidz_io_start()
2370 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver()
2414 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate()
H A Dvdev_removal.c2056 vd->vdev_ashift != spa->spa_max_ashift) { in spa_vdev_remove_top_check()
2075 cvd->vdev_ashift != vd->vdev_ashift) { in spa_vdev_remove_top_check()
2078 if (cvd->vdev_ashift != 0 && in spa_vdev_remove_top_check()
2080 ASSERT3U(cvd->vdev_ashift, ==, spa->spa_max_ashift); in spa_vdev_remove_top_check()
H A Dzfs_fm.c534 if (vd->vdev_ashift) in zfs_ereport_start()
537 DATA_TYPE_UINT64, vd->vdev_ashift, NULL); in zfs_ereport_start()
1162 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum()
H A Dvdev_mirror.c409 *logical_ashift = MAX(*logical_ashift, cvd->vdev_ashift); in vdev_mirror_open()
885 uint64_t psize = MIN(P2ROUNDUP(max_segment, 1 << vd->vdev_ashift), in vdev_mirror_rebuild_asize()
H A Dvdev_indirect.c955 *logical_ashift = vd->vdev_ashift; in vdev_indirect_open()
H A Dzio.c1341 ASSERT0(P2PHASE(offset, 1ULL << vd->vdev_ashift)); in zio_trim()
1342 ASSERT0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in zio_trim()
3776 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
H A Dvdev_label.c477 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ASHIFT, vd->vdev_ashift); in vdev_config_generate()
H A Dspa.c6611 tvd->vdev_ashift != spa->spa_max_ashift) {
6857 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift)
7614 vml[c]->vdev_top->vdev_ashift) == 0);
H A Darc.c9914 MAX(sizeof (*adddev->l2ad_dev_hdr), 1 << vd->vdev_ashift); in l2arc_add_vdev()
/freebsd-13.1/sys/contrib/openzfs/include/sys/
H A Dvdev_impl.h238 uint64_t vdev_ashift; /* block alignment shift */ member
484 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
/freebsd-13.1/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c4485 vd.vdev_ashift = ashift; in dump_label_uberblocks()
4822 vd.vdev_ashift = ashift; in dump_label()
5749 checkpoint_sm_obj, 0, vd->vdev_asize, vd->vdev_ashift)); in zdb_leak_init_vdev_exclude_checkpoint()
6076 inner_offset += 1 << vd->vdev_ashift) { in zdb_check_for_obsolete_leaks()
6078 offset + inner_offset, 1 << vd->vdev_ashift)) { in zdb_check_for_obsolete_leaks()
6079 obsolete_bytes += 1 << vd->vdev_ashift; in zdb_check_for_obsolete_leaks()
7051 current_vd->vdev_ashift)); in verify_checkpoint_vdev_spacemaps()
7217 checkpoint_sm_obj, 0, vd->vdev_asize, vd->vdev_ashift)); in dump_leftover_checkpoint_blocks()
/freebsd-13.1/sys/contrib/openzfs/cmd/ztest/
H A Dztest.c3766 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach()