| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev.c | 352 ASSERT0(asize % (1ULL << vd->vdev_top->vdev_ashift)); in vdev_default_psize() 369 uint64_t asize = P2ROUNDUP(psize, 1ULL << vd->vdev_top->vdev_ashift); in vdev_default_asize() 430 uint64_t min_alloc = 1ULL << vd->vdev_ashift; in vdev_get_min_alloc() 991 &vd->vdev_ashift); in vdev_alloc() 1432 mvd->vdev_ashift = cvd->vdev_ashift; in vdev_add_parent() 1466 cvd->vdev_ashift = mvd->vdev_ashift; in vdev_remove_parent() 1586 if (vd->vdev_top == vd && vd->vdev_ashift != 0 && in vdev_metaslab_group_create() 1588 if (vd->vdev_ashift > spa->spa_max_ashift) in vdev_metaslab_group_create() 1589 spa->spa_max_ashift = vd->vdev_ashift; in vdev_metaslab_group_create() 1590 if (vd->vdev_ashift < spa->spa_min_ashift) in vdev_metaslab_group_create() [all …]
|
| H A D | vdev_draid.c | 719 uint64_t ashift = vd->vdev_ashift; in vdev_draid_psize_to_asize() 788 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_write() 835 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_scrub() 925 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_empty() 992 uint64_t skip_size = 1ULL << zio->io_vd->vdev_top->vdev_ashift; in vdev_draid_map_verify_empty() 1040 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_logical_to_physical() 1137 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_draid_map_alloc_row() 1329 return (roundup(start, vdc->vdc_groupwidth << vd->vdev_ashift)); in vdev_draid_get_astart() 1360 return (vdc->vdc_ndata << vd->vdev_ashift); in vdev_draid_min_alloc() 1653 logical_ashift = MAX(logical_ashift, cvd->vdev_ashift); in vdev_draid_calculate_asize() [all …]
|
| H A D | metaslab.c | 1281 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_verify() 1318 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_add() 1343 uint64_t ashift = mg->mg_vd->vdev_ashift; in metaslab_group_histogram_remove() 2840 if (vdev->vdev_ms_shift - vdev->vdev_ashift < 32 && in metaslab_calculate_range_tree_type() 2842 *shift = vdev->vdev_ashift; in metaslab_calculate_range_tree_type() 2927 ms->ms_size, vd->vdev_ashift); in metaslab_init() 3316 uint8_t shift = msp->ms_group->mg_vd->vdev_ashift; in metaslab_weight_from_range_tree() 3399 uint8_t shift = mg->mg_vd->vdev_ashift; in metaslab_segment_weight() 3846 uint64_t vdev_blocksize = 1ULL << vd->vdev_ashift; in metaslab_should_condense() 4327 msp->ms_start, msp->ms_size, vd->vdev_ashift)); in metaslab_sync() [all …]
|
| H A D | vdev_raidz.c | 2207 *logical_ashift = MAX(*logical_ashift, cvd->vdev_ashift); in vdev_raidz_open() 2285 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_asize_to_psize() 2320 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_psize_to_asize() 2440 rc->rc_size + (1 << zio->io_vd->vdev_top->vdev_ashift)); in vdev_raidz_io_verify() 2498 uint64_t ashift = vd->vdev_top->vdev_ashift; in raidz_start_skip_writes() 2719 tvd->vdev_ashift, vdrz->vd_physical_width, in vdev_raidz_io_start() 2725 tvd->vdev_ashift, logical_width, vdrz->vd_nparity); in vdev_raidz_io_start() 3363 zio->io_vd->vdev_top->vdev_ashift, in raidz_reconstruct() 4040 uint64_t ashift = vd->vdev_top->vdev_ashift; in vdev_raidz_need_resilver() 4101 uint64_t ashift = raidvd->vdev_top->vdev_ashift; in vdev_raidz_xlate() [all …]
|
| H A D | vdev_file.c | 235 vd->vdev_ashift, &resid); in vdev_file_io_strategy()
|
| H A D | vdev_removal.c | 2295 vd->vdev_ashift != spa->spa_max_ashift) { in spa_vdev_remove_top_check() 2313 cvd->vdev_ashift != vd->vdev_ashift) { in spa_vdev_remove_top_check() 2316 if (cvd->vdev_ashift != 0 && in spa_vdev_remove_top_check() 2318 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() 965 uint64_t psize = MIN(P2ROUNDUP(max_segment, 1 << vd->vdev_ashift), in vdev_mirror_rebuild_asize()
|
| H A D | zfs_fm.c | 578 if (vd->vdev_ashift) in zfs_ereport_start() 581 DATA_TYPE_UINT64, vd->vdev_ashift, NULL); in zfs_ereport_start() 1239 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() 1043 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 | zio.c | 1536 ASSERT0(P2PHASE(offset, 1ULL << vd->vdev_ashift)); in zio_trim() 1537 ASSERT0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in zio_trim() 4677 align = 1ULL << vd->vdev_top->vdev_ashift; in zio_vdev_io_start()
|
| H A D | spa.c | 8057 tvd->vdev_ashift != spa->spa_max_ashift) { 8084 if (tvd->vdev_ashift != spa->spa_max_ashift) { 8429 if (newvd->vdev_ashift > oldvd->vdev_top->vdev_ashift) { 9264 vml[c]->vdev_top->vdev_ashift);
|
| H A D | arc.c | 8561 size = P2ROUNDUP(size, 1ULL << dev->l2ad_vdev->vdev_ashift); in l2arc_write_size() 10431 MAX(sizeof (*adddev->l2ad_dev_hdr), 1 << vd->vdev_ashift); in l2arc_add_vdev() 11470 dev->l2ad_vdev->vdev_ashift, in l2arc_log_blk_commit() 11471 dev->l2ad_vdev->vdev_ashift, sizeof (*lb)), 0); in l2arc_log_blk_commit()
|
| H A D | dsl_scan.c | 5110 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 | 96 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 | 219 uint64_t vdev_ashift; /* block alignment shift */ member 495 MIN(MAX((vd)->vdev_top->vdev_ashift, UBERBLOCK_SHIFT), \
|
| /freebsd/sys/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 2795 1ULL << vd->vdev_ashift, uint64_t); in print_file_layout_raidz() 2801 raidz_map_t *rm = vdev_raidz_map_alloc(&zio, vd->vdev_ashift, in print_file_layout_raidz() 2821 vd->vdev_ashift, rr); in print_file_layout_raidz() 2824 vd->vdev_ashift, rr); in print_file_layout_raidz() 2829 vd->vdev_ashift, rr); in print_file_layout_raidz() 2832 vd->vdev_ashift, rr); in print_file_layout_raidz() 2848 vd->vdev_ashift)); in print_file_layout_raidz() 2979 int ashift = spa->spa_root_vdev->vdev_child[0]->vdev_ashift; in dump_indirect_layout() 5472 vd.vdev_ashift = ashift; in dump_label_uberblocks() 5927 vd.vdev_ashift = ashift; in dump_label() [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/ |
| H A D | ztest.c | 3899 else if (ashift > oldvd->vdev_top->vdev_ashift) in ztest_vdev_attach_detach() 3998 write_size = P2ALIGN_TYPED(VDEV_BOOT_SIZE, 1 << raidvd->vdev_ashift, in raidz_scratch_verify()
|