/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_draid.c | 585 uint64_t ashift = vd->vdev_ashift; in vdev_draid_asize() 653 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write() 700 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub() 790 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty() 857 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty() 905 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() 963 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() 1156 return (roundup(start, vdc->vdc_groupwidth << vd->vdev_ashift)); in vdev_draid_get_astart() 1186 return (vdc->vdc_ndata << vd->vdev_ashift); in vdev_draid_min_alloc() 1487 logical_ashift = MAX(logical_ashift, cvd->vdev_ashift); in vdev_draid_calculate_asize() [all …]
|
H A D | vdev.c | 333 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize() 394 uint64_t min_alloc = 1ULL << vd->vdev_ashift; in vdev_get_min_alloc() 925 &vd->vdev_ashift); in vdev_alloc() 1359 mvd->vdev_ashift = cvd->vdev_ashift; in vdev_add_parent() 1392 cvd->vdev_ashift = mvd->vdev_ashift; in vdev_remove_parent() 1506 if (vd->vdev_top == vd && vd->vdev_ashift != 0 && in vdev_metaslab_group_create() 1508 if (vd->vdev_ashift > spa->spa_max_ashift) in vdev_metaslab_group_create() 1509 spa->spa_max_ashift = vd->vdev_ashift; in vdev_metaslab_group_create() 1510 if (vd->vdev_ashift < spa->spa_min_ashift) in vdev_metaslab_group_create() 1511 spa->spa_min_ashift = vd->vdev_ashift; in vdev_metaslab_group_create() [all …]
|
H A D | metaslab.c | 1234 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_verify() 1271 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_add() 1295 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_remove() 2745 if (vdev->vdev_ms_shift - vdev->vdev_ashift < 32 && in metaslab_calculate_range_tree_type() 2747 *shift = vdev->vdev_ashift; in metaslab_calculate_range_tree_type() 2827 ms->ms_size, vd->vdev_ashift); in metaslab_init() 3205 uint8_t shift = msp->ms_group->mg_vd->vdev_ashift; in metaslab_weight_from_range_tree() 3288 uint8_t shift = mg->mg_vd->vdev_ashift; in metaslab_segment_weight() 3735 uint64_t vdev_blocksize = 1ULL << vd->vdev_ashift; in metaslab_should_condense() 4209 msp->ms_start, msp->ms_size, vd->vdev_ashift)); in metaslab_sync() [all …]
|
H A D | vdev_raidz.c | 2169 *logical_ashift = MAX(*logical_ashift, cvd->vdev_ashift); in vdev_raidz_open() 2252 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize() 2338 rc->rc_size + (1 << zio->io_vd->vdev_top->vdev_ashift)); in vdev_raidz_io_verify() 2396 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes() 2587 tvd->vdev_ashift, vdrz->vd_physical_width, in vdev_raidz_io_start() 2593 tvd->vdev_ashift, logical_width, vdrz->vd_nparity); in vdev_raidz_io_start() 2962 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct() 3620 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver() 3681 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate() 3961 uint_t ashift = vd->vdev_top->vdev_ashift; in raidz_reflow_impl() [all …]
|
H A D | vdev_removal.c | 2271 vd->vdev_ashift != spa->spa_max_ashift) { in spa_vdev_remove_top_check() 2289 cvd->vdev_ashift != vd->vdev_ashift) { in spa_vdev_remove_top_check() 2292 if (cvd->vdev_ashift != 0 && in spa_vdev_remove_top_check() 2294 ASSERT3U(cvd->vdev_ashift, ==, spa->spa_max_ashift); in spa_vdev_remove_top_check()
|
H A D | vdev_mirror.c | 412 *logical_ashift = MAX(*logical_ashift, cvd->vdev_ashift); in vdev_mirror_open() 964 uint64_t psize = MIN(P2ROUNDUP(max_segment, 1 << vd->vdev_ashift), in vdev_mirror_rebuild_asize()
|
H A D | zfs_fm.c | 575 if (vd->vdev_ashift) in zfs_ereport_start() 578 DATA_TYPE_UINT64, vd->vdev_ashift, NULL); in zfs_ereport_start() 1234 report->zcr_sector = 1ULL << vd->vdev_top->vdev_ashift; in zfs_ereport_start_checksum()
|
H A D | vdev_label.c | 503 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ASHIFT, vd->vdev_ashift); in vdev_config_generate() 511 fnvlist_add_uint64(nv, ZPOOL_CONFIG_ASHIFT, vd->vdev_ashift); in vdev_config_generate() 1041 fnvlist_add_uint64(label, ZPOOL_CONFIG_ASHIFT, vd->vdev_ashift); in vdev_aux_label_generate()
|
H A D | vdev_indirect.c | 956 *logical_ashift = vd->vdev_ashift; in vdev_indirect_open()
|
H A D | spa.c | 7341 tvd->vdev_ashift != spa->spa_max_ashift) { 7368 if (tvd->vdev_ashift != spa->spa_max_ashift) { 7624 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) { 8459 vml[c]->vdev_top->vdev_ashift);
|
H A D | zio.c | 1562 ASSERT0(P2PHASE(offset, 1ULL << vd->vdev_ashift)); in zio_trim() 1563 ASSERT0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in zio_trim() 4413 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
|
H A D | arc.c | 8302 size = P2ROUNDUP(size, 1ULL << dev->l2ad_vdev->vdev_ashift); in l2arc_write_size() 9785 MAX(sizeof (*adddev->l2ad_dev_hdr), 1 << vd->vdev_ashift); in l2arc_add_vdev() 10779 dev->l2ad_vdev->vdev_ashift, in l2arc_log_blk_commit() 10780 dev->l2ad_vdev->vdev_ashift, sizeof (*lb)), 0); in l2arc_log_blk_commit()
|
H A D | dsl_scan.c | 5081 ZFS_RANGE_SEG_GAP, &q->q_exts_by_size, 0, vd->vdev_ashift, in scan_io_queue_create()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | vdev_label_os.c | 100 size_t size = 1ULL << childvd->vdev_top->vdev_ashift; in vdev_check_boot_reserve()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | vdev_impl.h | 218 uint64_t vdev_ashift; /* block alignment shift */ member 485 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 4998 vd.vdev_ashift = ashift; in dump_label_uberblocks() 5453 vd.vdev_ashift = ashift; in dump_label() 6500 checkpoint_sm_obj, 0, vd->vdev_asize, vd->vdev_ashift)); in zdb_leak_init_vdev_exclude_checkpoint() 6823 inner_offset += 1ULL << vd->vdev_ashift) { in zdb_check_for_obsolete_leaks() 6825 offset + inner_offset, 1ULL << vd->vdev_ashift)) { in zdb_check_for_obsolete_leaks() 6826 obsolete_bytes += 1ULL << vd->vdev_ashift; in zdb_check_for_obsolete_leaks() 7871 current_vd->vdev_ashift)); in verify_checkpoint_vdev_spacemaps() 8038 checkpoint_sm_obj, 0, vd->vdev_asize, vd->vdev_ashift)); in dump_leftover_checkpoint_blocks()
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 3900 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() 3999 write_size = P2ALIGN_TYPED(VDEV_BOOT_SIZE, 1 << raidvd->vdev_ashift, in raidz_scratch_verify()
|