Home
last modified time | relevance | path

Searched refs:dva (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_display_block.ksh73 dva=$(sed -Ene 's/^.+DVA\[0\]=<([^>]+)>.*/\1/p' <<< "$output")
74 log_note "first L1 block $init_data has a DVA of $dva"
85 output=$(export ZDB_NO_ZLE=\"true\"; zdb -R $TESTPOOL $dva:bd\
93 output=$(export ZDB_NO_ZLE=\"true\"; zdb -R $TESTPOOL $dva:db80\
101 output=$(export ZDB_NO_ZLE=\"true\"; zdb -R $TESTPOOL $dva:b80d\
109 vdev=$(echo "$dva" | cut -d: -f1)
110 offset=$(echo "$dva" | cut -d: -f2)
H A Dzdb_checksum.ksh57 dva=$(sed -Ene 's/^.+DVA\[0\]=<([^>]+)>.*$/\1/p' <<< "$output")
58 log_note "block 0 of $init_data has a DVA of $dva"
61 output=$(zdb -R $TESTPOOL $dva:c 2> /dev/null)
H A Dzdb_decompress_zstd.ksh71 dva=$(sed -Ene 's/^.+DVA\[0\]=<([^>]+)>.*$/\1/p' <<< "$output")
72 log_note "block 0 of $init_data has a DVA of $dva"
98 IFS=':' read -r vdev offset _ <<<"$dva"
H A Dzdb_decompress.ksh77 dva=$(sed -Ene 's/^.+DVA\[0\]=<([^>]+)>.*$/\1/p' <<< "$output")
78 log_note "block 0 of $init_data has a DVA of $dva"
84 IFS=: read -r vdev offset _ <<< "$dva"
/freebsd/sys/contrib/openzfs/include/sys/
H A Dspa.h109 typedef struct dva { struct
390 #define DVA_GET_ASIZE(dva) \ argument
391 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
392 #define DVA_SET_ASIZE(dva, x) \ argument
393 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
396 #define DVA_GET_VDEV(dva) BF64_GET((dva)->dva_word[0], 32, SPA_VDEVBITS) argument
397 #define DVA_SET_VDEV(dva, x) \ argument
398 BF64_SET((dva)->dva_word[0], 32, SPA_VDEVBITS, x)
400 #define DVA_GET_OFFSET(dva) \ argument
401 BF64_GET_SB((dva)->dva_word[1], 0, 63, SPA_MINBLOCKSHIFT, 0)
[all …]
H A Dvdev.h79 extern boolean_t vdev_default_need_resilver(vdev_t *vd, const dva_t *dva,
81 extern boolean_t vdev_dtl_need_resilver(vdev_t *vd, const dva_t *dva,
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h154 typedef struct dva { struct
344 #define DVA_GET_ASIZE(dva) \ argument
345 BF64_GET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, SPA_MINBLOCKSHIFT, 0)
346 #define DVA_SET_ASIZE(dva, x) \ argument
347 BF64_SET_SB((dva)->dva_word[0], 0, SPA_ASIZEBITS, \
350 #define DVA_GET_GRID(dva) BF64_GET((dva)->dva_word[0], 24, 8) argument
351 #define DVA_SET_GRID(dva, x) BF64_SET((dva)->dva_word[0], 24, 8, x) argument
353 #define DVA_GET_VDEV(dva) BF64_GET((dva)->dva_word[0], 32, 32) argument
354 #define DVA_SET_VDEV(dva, x) BF64_SET((dva)->dva_word[0], 32, 32, x) argument
356 #define DVA_GET_OFFSET(dva) \ argument
[all …]
H A Dzfssubr.c218 const dva_t *dva = BP_IDENTITY(bp); in zio_checksum_gang_verifier() local
223 ZIO_SET_CHECKSUM(zcp, DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), txg, 0); in zio_checksum_gang_verifier()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_from_zstd.ksh73 dva=$(sed -Ene 's/^.+DVA\[0\]=<([^>]+)>.*$/\1/p' <<< "$output")
74 log_note "block 0 of /$TESTPOOL/$TESTFS1/$TESTFILE0 has a DVA of $dva"
92 dva=$(sed -Ene 's/^.+DVA\[0\]=<([^>]+)>.*$/\1/p' <<< "$output")
93 log_note "block 0 of /$TESTPOOL/$TESTFS2/$TESTFILE0 has a DVA of $dva"
/freebsd/lib/libkvm/
H A Dkvm_minidump_amd64.c347 u_long bmindex, dva, pa, pdeindex, va; in _amd64_minidump_walk_pages() local
377 dva = vm->hdr.dmapbase + pa; in _amd64_minidump_walk_pages()
379 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _amd64_minidump_walk_pages()
396 dva = vm->hdr.dmapbase + pa; in _amd64_minidump_walk_pages()
400 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _amd64_minidump_walk_pages()
413 dva = vm->hdr.dmapbase + pa; in _amd64_minidump_walk_pages()
414 if (vm->hdr.dmapend < (dva + pgsz)) in _amd64_minidump_walk_pages()
419 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, prot, pgsz, 0)) { in _amd64_minidump_walk_pages()
H A Dkvm_minidump_riscv.c239 u_long bmindex, dva, pa, pteindex, va; in _riscv_minidump_walk_pages() local
256 dva = vm->hdr.dmapbase + pa; in _riscv_minidump_walk_pages()
257 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _riscv_minidump_walk_pages()
267 dva = vm->hdr.dmapbase + pa; in _riscv_minidump_walk_pages()
268 if (vm->hdr.dmapend < (dva + RISCV_PAGE_SIZE)) in _riscv_minidump_walk_pages()
272 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _riscv_minidump_walk_pages()
H A Dkvm_minidump_aarch64.c270 u_long bmindex, dva, pa, pteindex, va; in _aarch64_minidump_walk_pages() local
286 dva = vm->hdr.dmapbase + pa; in _aarch64_minidump_walk_pages()
287 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _aarch64_minidump_walk_pages()
297 dva = vm->hdr.dmapbase + pa; in _aarch64_minidump_walk_pages()
298 if (vm->hdr.dmapend < (dva + kd->vmst->page_size)) in _aarch64_minidump_walk_pages()
302 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _aarch64_minidump_walk_pages()
H A Dkvm_minidump_i386.c285 _i386_iterator_next(struct i386_iter *it, u_long *pa, u_long *va, u_long *dva, in _i386_iterator_next() argument
293 *dva = 0; in _i386_iterator_next()
296 *dva = 0; in _i386_iterator_next()
322 u_long dva, pa, va; in _i386_minidump_walk_pages() local
326 while (_i386_iterator_next(&it, &pa, &va, &dva, &prot)) { in _i386_minidump_walk_pages()
327 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _i386_minidump_walk_pages()
H A Dkvm_minidump_arm.c237 u_long dva, pa, pteindex, va; in _arm_minidump_walk_pages() local
259 dva = 0; /* no direct map on this platform */ in _arm_minidump_walk_pages()
260 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in _arm_minidump_walk_pages()
H A Dkvm_minidump_powerpc64_hpt.c607 u_long dva, pa, va; in ppc64mmu_hpt_walk_pages() local
641 dva = vm->hdr.dmapbase + pa; in ppc64mmu_hpt_walk_pages()
643 if (!_kvm_visit_cb(kd, cb, arg, pa, va, dva, in ppc64mmu_hpt_walk_pages()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dmetaslab.c4477 metaslab_is_unique(metaslab_t *msp, dva_t *dva) in metaslab_is_unique() argument
4481 if (DVA_GET_ASIZE(dva) == 0) in metaslab_is_unique()
4484 if (msp->ms_group->mg_vd->vdev_id != DVA_GET_VDEV(dva)) in metaslab_is_unique()
4487 dva_ms_id = DVA_GET_OFFSET(dva) >> msp->ms_group->mg_vd->vdev_ms_shift; in metaslab_is_unique()
4635 const dva_t *dva = bp->blk_dva; in metaslab_group_alloc_verify() local
4639 uint64_t vdev = DVA_GET_VDEV(&dva[d]); in metaslab_group_alloc_verify()
4702 dva_t *dva, int d, boolean_t want_unique, uint64_t asize, int allocator, in find_valid_metaslab() argument
4748 !metaslab_is_unique(msp, &dva[i])) in find_valid_metaslab()
4801 uint64_t asize, uint64_t txg, boolean_t want_unique, dva_t *dva, int d, in metaslab_group_alloc_normal() argument
4810 DVA_GET_VDEV(&dva[i]) == mg->mg_vd->vdev_id) { in metaslab_group_alloc_normal()
[all …]
H A Dvdev_mirror.c273 dva_t *dva = zio->io_bp->blk_dva; in vdev_mirror_map_init() local
311 if (zfs_dva_valid(spa, &dva[i], zio->io_bp)) in vdev_mirror_map_init()
312 dva_copy[j++] = dva[i]; in vdev_mirror_map_init()
320 dva = dva_copy; in vdev_mirror_map_init()
329 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c])); in vdev_mirror_map_init()
330 mc->mc_offset = DVA_GET_OFFSET(&dva[c]); in vdev_mirror_map_init()
460 dva_t *dva = zio->io_bp->blk_dva; in vdev_mirror_dva_select() local
468 if (DVA_GET_VDEV(&dva[c]) == DVA_GET_VDEV(&dva[preferred])) in vdev_mirror_dva_select()
H A Dzio_inject.c129 zio_match_handler(const zbookmark_phys_t *zb, uint64_t type, int dva, in zio_match_handler()
154 (dva != ZI_NO_DVA && (record->zi_dvas & (1ULL << dva)))) && in zio_match_handler()
231 dva_t *dva = &zio->io_bp->blk_dva[i]; in zio_match_dva()
232 uint64_t off = DVA_GET_OFFSET(dva); in zio_match_dva()
234 DVA_GET_VDEV(dva)); in zio_match_dva()
127 zio_match_handler(const zbookmark_phys_t * zb,uint64_t type,int dva,zinject_record_t * record,int error) zio_match_handler() argument
229 dva_t *dva = &zio->io_bp->blk_dva[i]; zio_match_dva() local
H A Dzio_checksum.c280 const dva_t *dva = BP_IDENTITY(bp); in zio_checksum_gang_verifier() local
285 ZIO_SET_CHECKSUM(zcp, DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), txg, 0); in zio_checksum_gang_verifier()
H A Ddsl_scan.c3635 const dva_t *dva = &bp->blk_dva[0]; in dsl_scan_obsolete_block_cb() local
3641 DVA_GET_VDEV(dva), DVA_GET_OFFSET(dva), in dsl_scan_obsolete_block_cb()
3642 DVA_GET_ASIZE(dva), tx); in dsl_scan_obsolete_block_cb()
3704 dsl_scan_need_resilver(spa_t *spa, const dva_t *dva, size_t psize, in dsl_scan_need_resilver() argument
3709 vd = vdev_lookup_top(spa, DVA_GET_VDEV(dva)); in dsl_scan_need_resilver()
3722 if (DVA_GET_GANG(dva)) { in dsl_scan_need_resilver()
3740 if (!vdev_dtl_need_resilver(vd, dva, psize, phys_birth)) in dsl_scan_need_resilver()
4745 dva_t dva; in dsl_scan_enqueue() local
4748 dva = bp->blk_dva[i]; in dsl_scan_enqueue()
4749 vdev = vdev_lookup_top(spa, DVA_GET_VDEV(&dva)); in dsl_scan_enqueue()
[all …]
/freebsd/usr.sbin/makefs/zfs/
H A Dvdev.c51 dva_t *dva; in blkptr_set() local
66 dva = BP_IDENTITY(bp); in blkptr_set()
67 DVA_SET_VDEV(dva, 0); in blkptr_set()
68 DVA_SET_OFFSET(dva, off); in blkptr_set()
69 DVA_SET_ASIZE(dva, size); in blkptr_set()
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib3154 typeset dva=$1
3156 typeset offcol=$(echo $dva | cut -f2 -d:)
3176 typeset dva=$1
3180 typeset -i offset=0x$(echo $dva | cut -f2 -d:)
3268 typeset dva=$2
3276 tvd=$(echo $dva | cut -d: -f1)
3284 log_debug "type='$tvd_type' children='$nchildren' lvd='$lvd' dva='$dva'"
3289 off=$(raidz_dva_to_block_addr $dva $nchildren $ashift)
3293 off=$(dva_to_block_addr $dva)
3372 typeset dva="$(echo $line | cut -d " " -f2)"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dblkdev.shlib571 while (split($field, dva, ":") == 3) {
573 vdev = int(dva[1])
575 offset = (int("0x"dva[2]) + pad) / bs
577 len = int("0x"dva[3]) / bs
/freebsd/lib/libc/nls/
H A Dhu_HU.ISO8859-2.msg118 56 A socket m�r kapcsol�dva van
120 57 A socket nincs kapcsol�dva
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c2152 char dva[64]; in dump_brt() local
2183 snprintf(dva, sizeof (dva), "%" PRIu64 ":%llx", in dump_brt()
2185 printf("%-16s %-10llu\n", dva, in dump_brt()
2458 const dva_t *dva = bp->blk_dva; in snprintf_blkptr_compact() local
2486 (u_longlong_t)DVA_GET_VDEV(&dva[i]), in snprintf_blkptr_compact()
2487 (u_longlong_t)DVA_GET_OFFSET(&dva[i]), in snprintf_blkptr_compact()
2488 (u_longlong_t)DVA_GET_ASIZE(&dva[i])); in snprintf_blkptr_compact()
4656 dva_t dva = le[j].le_dva; in dump_l2arc_log_entries() local
4660 (u_longlong_t)DVA_GET_ASIZE(&dva), in dump_l2arc_log_entries()
4661 (u_longlong_t)DVA_GET_VDEV(&dva), in dump_l2arc_log_entries()
[all …]

12