Home
last modified time | relevance | path

Searched refs:vd (Results 1 – 25 of 83) sorted by relevance

1234

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev.c271 if (vd == vd->vdev_top) in vdev_get_min_asize()
1198 if (vd->vdev_top == vd && vd->vdev_ashift != 0 && in vdev_metaslab_group_create()
1569 if (vd == vd->vdev_top && !vd->vdev_ishole && vd->vdev_ashift != 0) { in vdev_set_deflate_ratio()
1783 if (vd->vdev_top == vd && vd->vdev_ashift != 0 && in vdev_open()
1939 if (vd != vd->vdev_top || vd->vdev_guid != top_guid) in vdev_validate()
2332 ASSERT(vd == vd->vdev_top); in vdev_dirty()
2766 if (vd == vd->vdev_top && vd->vdev_top_zap == 0) { in vdev_construct_zaps()
2968 if (vd == vd->vdev_top && vd->vdev_top_zap != 0) { in vdev_load()
2983 if (vd == vd->vdev_top && vdev_is_concrete(vd)) { in vdev_load()
3854 if (vd->vdev_aux == NULL && vd == vd->vdev_top && in vdev_get_stats_ex()
[all …]
H A Dvdev_initialize.c50 return (vd->vdev_initialize_exit_wanted || !vdev_writeable(vd) || in vdev_initialize_should_stop()
51 vd->vdev_detached || vd->vdev_top->vdev_removing); in vdev_initialize_should_stop()
70 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_initialize_zap_update_sync()
181 spa_config_exit(vd->vdev_spa, SCL_STATE_ALL, vd); in vdev_initialize_cb()
225 spa_config_exit(vd->vdev_spa, SCL_STATE_ALL, vd); in vdev_initialize_write()
426 IMPLY(vd->vdev_top == vd, in vdev_initialize_range_add()
428 IMPLY(vd->vdev_top == vd, in vdev_initialize_range_add()
503 vd); in vdev_initialize_thread()
528 if (!vd->vdev_initialize_exit_wanted && vdev_writeable(vd)) { in vdev_initialize_thread()
591 vdev_t *vd; in vdev_initialize_stop_wait() local
[all …]
H A Dvdev_trim.c172 vd->vdev_detached || vd->vdev_top->vdev_removing); in vdev_trim_should_stop()
206 if (vd == NULL || vd->vdev_top->vdev_removing || !vdev_is_concrete(vd)) in vdev_trim_zap_update_sync()
395 spa_config_exit(vd->vdev_spa, SCL_STATE_ALL, vd); in vdev_trim_cb()
431 spa_config_exit(vd->vdev_spa, SCL_STATE_ALL, vd); in vdev_autotrim_cb()
507 spa_config_exit(vd->vdev_spa, SCL_STATE_ALL, vd); in vdev_trim_range()
761 IMPLY(vd->vdev_top == vd, in vdev_trim_range_add()
763 IMPLY(vd->vdev_top == vd, in vdev_trim_range_add()
900 vd->vdev_trim_rate, vd->vdev_trim_partial, in vdev_trim_thread()
950 cv_wait(&vd->vdev_trim_cv, &vd->vdev_trim_lock); in vdev_trim_stop_wait_impl()
1087 vdev_trim(vd, vd->vdev_trim_rate, in vdev_trim_restart()
[all …]
H A Dvdev_disk.c129 vd->vdev_tsd = NULL; in vdev_disk_free()
156 zfs_post_remove(vd->vdev_spa, vd); in vdev_disk_off_notify()
207 (void) vdev_degrade(vd->vdev_spa, vd->vdev_guid, 0); in vdev_disk_dgrd_finalize()
227 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') in vdev_disk_hold()
248 (void) ldi_vp_from_name(vd->vdev_path, &vd->vdev_name_vp); in vdev_disk_hold()
309 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_disk_open()
327 dvd = vd->vdev_tsd; in vdev_disk_open()
359 vdev_dbgmsg(vd, in vdev_disk_open()
582 vd->vdev_devid != NULL ? vd->vdev_devid : "<none>", in vdev_disk_open()
586 vd->vdev_path != NULL ? vd->vdev_path : "?", in vdev_disk_open()
[all …]
H A Dvdev_label.c473 vd == vd->vdev_top) { in vdev_config_generate()
541 ASSERT(vd == vd->vdev_top); in vdev_config_generate()
666 if (vd->vdev_offline && !vd->vdev_tmpoffline) in vdev_config_generate()
695 if (vd->vdev_splitting && vd->vdev_orig_guid != 0LL) { in vdev_config_generate()
1215 if (vd->vdev_ops->vdev_op_leaf && vdev_readable(vd)) { in vdev_label_read_bootenv_impl()
1325 if (!vd->vdev_ops->vdev_op_leaf || vdev_is_dead(vd) || in vdev_label_write_bootenv()
1475 if (vd->vdev_ops->vdev_op_leaf && vdev_readable(vd)) { in vdev_uberblock_load_impl()
1710 vdev_t *vd; in vdev_label_sync_list() local
1719 for (vd = list_head(dl); vd != NULL; vd = list_next(dl, vd)) { in vdev_label_sync_list()
1726 (vd->vdev_islog || vd->vdev_aux != NULL) ? in vdev_label_sync_list()
[all …]
H A Dvdev_removal.c337 "im_obj=%llu", vd->vdev_id, vd, dmu_tx_get_txg(tx), in vdev_remove_initiate_sync()
342 (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in vdev_remove_initiate_sync()
397 if (vd == NULL) { in spa_remove_init()
697 vdev_t *vd = arg; in free_mapped_segment_cb() local
1674 vd->vdev_id, (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in spa_vdev_remove_cancel_sync()
1738 vdev_free(vd); in vdev_remove_make_hole_and_free()
1761 ASSERT(vd == vd->vdev_top); in spa_vdev_remove_log()
1828 (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in spa_vdev_remove_log()
1875 if (vd != vd->vdev_top) in spa_vdev_remove_top_check()
2067 vdev_t *vd; in spa_vdev_remove() local
[all …]
H A Dvdev_root.c42 vdev_root_core_tvds(vdev_t *vd) in vdev_root_core_tvds() argument
47 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_core_tvds()
75 tvds = vdev_root_core_tvds(vd); in too_many_errors()
88 spa_t *spa = vd->vdev_spa; in vdev_root_open()
92 if (vd->vdev_children == 0) { in vdev_root_open()
97 vdev_open_children(vd); in vdev_root_open()
100 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_open()
111 if (too_many_errors(vd, numerrors)) { in vdev_root_open()
124 vdev_root_close(vdev_t *vd) in vdev_root_close() argument
127 vdev_close(vd->vdev_child[c]); in vdev_root_close()
[all …]
H A Dvdev_indirect.c329 ASSERT(vd->vdev_removing || vd->vdev_ops == &vdev_indirect_ops); in vdev_indirect_mark_obsolete()
650 vdev_t *vd; in spa_condense_indirect_thread() local
655 ASSERT3P(vd, !=, NULL); in spa_condense_indirect_thread()
816 ASSERT(vd->vdev_removing || vd->vdev_ops == &vdev_indirect_ops); in vdev_indirect_sync_obsolete()
825 VERIFY0(zap_add(vd->vdev_spa->spa_meta_objset, vd->vdev_top_zap, in vdev_indirect_sync_obsolete()
897 int err = zap_lookup(vd->vdev_spa->spa_meta_objset, vd->vdev_top_zap, in vdev_obsolete_sm_object()
914 int err = zap_lookup(vd->vdev_spa->spa_meta_objset, vd->vdev_top_zap, in vdev_obsolete_counts_are_precise()
951 rs->rs_vd = vd; in rs_alloc()
1182 ASSERT3P(vd, !=, NULL); in vdev_indirect_gather_splits()
1189 n = vd->vdev_children; in vdev_indirect_gather_splits()
[all …]
H A Dvdev_file.c45 vdev_file_hold(vdev_t *vd) in vdev_file_hold() argument
51 vdev_file_rele(vdev_t *vd) in vdev_file_rele() argument
68 vd->vdev_nonrot = B_TRUE; in vdev_file_open()
75 vd->vdev_has_trim = B_TRUE; in vdev_file_open()
86 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open()
95 if (vd->vdev_tsd != NULL) { in vdev_file_open()
97 vf = vd->vdev_tsd; in vdev_file_open()
109 ASSERT(vd->vdev_path != NULL && vd->vdev_path[0] == '/'); in vdev_file_open()
148 vdev_file_close(vdev_t *vd) in vdev_file_close() argument
164 vd->vdev_tsd = NULL; in vdev_file_close()
[all …]
H A Dspa_checkpoint.c209 vdev_t *vd = sdc->sdc_vd; in spa_checkpoint_discard_sync_callback() local
210 metaslab_t *ms = vd->vdev_ms[sme->sme_offset >> vd->vdev_ms_shift]; in spa_checkpoint_discard_sync_callback()
261 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_accounting_verify() local
263 if (vd->vdev_checkpoint_sm != NULL) { in spa_checkpoint_accounting_verify()
267 vd->vdev_stat.vs_checkpoint_space; in spa_checkpoint_accounting_verify()
280 vdev_t *vd = arg; in spa_checkpoint_discard_thread_sync() local
320 sdc.sdc_vd = vd; in spa_checkpoint_discard_thread_sync()
347 error, vd->vdev_id); in spa_checkpoint_discard_thread_sync()
355 vd->vdev_checkpoint_sm = NULL; in spa_checkpoint_discard_thread_sync()
401 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_discard_thread() local
[all …]
H A Dzfs_fm.c160 vd != NULL ? vd->vdev_guid : 0); in zfs_ereport_start()
188 if (vd != NULL) { in zfs_ereport_start()
203 if (vd->vdev_fru != NULL) in zfs_ereport_start()
207 if (vd->vdev_ashift) in zfs_ereport_start()
242 if (vd != NULL) { in zfs_ereport_start()
256 } else if (vd != NULL) { in zfs_ereport_start()
644 if (vd != NULL) { in zfs_ereport_is_valid()
654 if (zio->io_vd == vd && !vdev_accessible(vd, zio)) in zfs_ereport_is_valid()
673 if (vd != NULL && in zfs_ereport_is_valid()
675 (vd->vdev_remove_wanted || vd->vdev_state == VDEV_STATE_REMOVED)) in zfs_ereport_is_valid()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c1911 vd_t *vd = task->vd; in vd_bio_task() local
3714 vd_t *vd = task->vd; in vd_get_devid() local
3810 vd_t *vd = task->vd; in vd_reset() local
3834 vd_t *vd = task->vd; in vd_get_capacity() local
3878 vd_t *vd = task->vd; in vd_get_access() local
3917 vd_t *vd = task->vd; in vd_set_access() local
4037 if (vd->file || vd->volume || !vd->ownership) in vd_reset_access()
4213 vd_t *vd = task->vd; in vd_process_task() local
4526 vd->inband_task.vd = vd; in vd_process_attr_msg()
4665 vd->dring_task[i].vd = vd; in vd_process_dring_reg_msg()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dvdisk.c79 return (vd); in vdisk_get_info()
81 return (vd); in vdisk_get_info()
126 vd = calloc(1, sizeof (*vd)); in command_mapvd()
133 free(vd); in command_mapvd()
137 vd->vdisk_fd = open(vd->vdisk_path, O_RDONLY); in command_mapvd()
141 free(vd); in command_mapvd()
234 free(vd); in command_unmapvd()
258 if (vd == NULL) in vdisk_strategy()
306 if (vd == NULL) in vdisk_open()
310 rc = disk_open(dev, vd->vdisk_size, vd->vdisk_sectorsz); in vdisk_open()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev.h63 extern int vdev_validate_aux(vdev_t *vd);
98 extern void vdev_split(vdev_t *vd);
99 extern void vdev_deadman(vdev_t *vd);
105 extern void vdev_clear_stats(vdev_t *vd);
113 extern void vdev_space_update(vdev_t *vd,
134 extern void vdev_cache_init(vdev_t *vd);
135 extern void vdev_cache_fini(vdev_t *vd);
138 extern void vdev_cache_purge(vdev_t *vd);
140 extern void vdev_queue_init(vdev_t *vd);
141 extern void vdev_queue_fini(vdev_t *vd);
[all …]
H A Dvdev_impl.h73 typedef void vdev_close_func_t(vdev_t *vd);
79 typedef void vdev_hold_func_t(vdev_t *vd);
80 typedef void vdev_rele_func_t(vdev_t *vd);
426 #define VDEV_UBERBLOCK_SHIFT(vd) \ argument
429 #define VDEV_UBERBLOCK_COUNT(vd) \ argument
431 #define VDEV_UBERBLOCK_OFFSET(vd, n) \ argument
433 #define VDEV_UBERBLOCK_SIZE(vd) (1ULL << VDEV_UBERBLOCK_SHIFT(vd)) argument
513 extern void vdev_free(vdev_t *vd);
528 extern int vdev_load(vdev_t *vd);
529 extern int vdev_dtl_load(vdev_t *vd);
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmbest.c87 Vmdata_t* vd; in vmisfree()
100 if(vd->root)
111 Vmdata_t* vd; in vmisjunk()
183 if(vd->root && vmchktree(vd->root) < 0 )
282 /**/ASSERT(!vd->root || vmchktree(vd->root) == 0);
353 /**/ASSERT(!vd->root || vmchktree(vd->root) == 0);
383 { list = CACHE(vd)[n]; CACHE(vd)[n] = NIL(Block_t*); local
554 if(size > COMPACT*vd->incr && vd->incr > round)
590 /**/ ASSERT(!vd->root || !vmintree(vd->root,bp));
806 vd->pool = (vd->pool + (s&~BITS))/2;
[all …]
H A Dvmopen.c43 } vd; member
65 Vmdata_t *vd; local
98 vd = &init->vd.vd; /**/ASSERT(VLONG(vd)%ALIGN == 0);
114 vd = &init->vd.vd; /**/ASSERT(VLONG(vd)%ALIGN == 0);
116 vd->incr = incr;
117 vd->pool = 0;
118 vd->free = vd->wild = NIL(Block_t*);
129 vd->seg = &init->seg.seg; /**/ ASSERT(VLONG(vd->seg)%ALIGN == 0);
130 seg = vd->seg;
132 seg->vmdt = vd;
[all …]
H A Dvmprivate.c67 if(size > 2*vd->incr && vm->disc->round < vd->incr)
68 vd->incr *= 2;
105 if(bp == vd->wild)
135 seg->vmdt = vd;
149 sp = vd->seg;
157 else vd->seg = seg;
168 if((tp = vd->wild) && (seg = SEG(tp)) != vd->seg)
211 less = (less/vd->incr)*vd->incr;
213 less = less <= (ssize_t)vd->incr ? 0 : less - vd->incr;
230 if(seg == vd->seg)
[all …]
H A Dvmlast.c47 Vmdata_t *vd = vm->data; local
58 seg->next = vd->seg;
59 vd->seg = seg;
113 { seg = vd->seg;
168 seg = vd->seg;
218 { tp = vd->free;
220 { vd->free = tp;
238 seg = vd->seg;
284 if(!vd->free || addr < (Void_t*)vd->free || addr >= (Void_t*)vd->seg->baddr)
307 if(!vd->free || addr != (Void_t*)vd->free )
[all …]
H A Dvmpool.c58 if(size != vd->pool)
59 { if(vd->pool <= 0)
60 vd->pool = size;
67 { vd->free = SEGLINK(tp);
93 vd->free = next;
127 Vmdata_t* vd = vm->data; local
168 Vmdata_t *vd = vm->data; local
172 if(vd->pool <= 0)
180 SEGLINK(bp) = vd->free;
181 vd->free = bp;
[all …]
H A Dvmclear.c44 Vmdata_t *vd = vm->data; local
48 vd->free = vd->wild = NIL(Block_t*);
49 vd->pool = 0;
51 if(vd->mode&(VM_MTBEST|VM_MTDEBUG|VM_MTPROFILE) )
52 { vd->root = NIL(Block_t*);
54 TINY(vd)[s] = NIL(Block_t*); local
56 CACHE(vd)[s] = NIL(Block_t*); local
59 for(seg = vd->seg; seg; seg = next)
67 if((vd->mode&(VM_MTLAST|VM_MTPOOL)) )
71 LINK(tp) = CACHE(vd)[C_INDEX(SIZE(tp))];
[all …]
H A Dvmstat.c46 Vmdata_t *vd; local
71 vd = vm->data;
72 st->mode = vd->mode;
74 if(vd->mode&VM_MTLAST)
76 else if((vd->mode&VM_MTPOOL) && (s = vd->pool) > 0)
78 for(b = vd->free; b; b = SEGLINK(b))
100 if(vd->mode&VM_MTDEBUG)
102 else if(vd->mode&VM_MTPROFILE)
114 else if(vd->mode&VM_MTLAST)
124 else if((vd->mode&VM_MTPOOL) && s > 0)
[all …]
/illumos-gate/usr/src/uts/common/io/vioscsi/
H A Dvioscsi.c213 l = &vd->vd_reqs; in vioscsi_dev_timeout()
241 vd->vd_timeout = timeout(vioscsi_dev_timeout, vd, vioscsi_hz); in vioscsi_dev_timeout()
439 if (vd->vd_num_cmd >= vd->vd_max_cmd) { in vioscsi_tran_start()
473 vd->vd_timeout = timeout(vioscsi_dev_timeout, vd, in vioscsi_tran_start()
650 if (vioscsi_lun_reset(vd->vd_sc, vd->vd_target, vd->vd_lun)) { in vioscsi_tran_reset()
655 if (vioscsi_target_reset(vd->vd_sc, vd->vd_target)) { in vioscsi_tran_reset()
944 vd = kmem_zalloc(sizeof (*vd), KM_SLEEP); in vioscsi_tran_tgt_init()
991 kmem_free(vd, sizeof (*vd)); in vioscsi_tran_tgt_free()
1050 for (vd = list_head(l); vd != NULL; vd = list_next(l, vd)) { in vioscsi_rescan_luns()
1070 for (vd = list_head(l); vd != NULL; vd = list_next(l, vd)) { in vioscsi_lun_changed()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvdsk_common.h544 ASSERT((vd) != NULL); \
547 if ((vd)->io_stats != NULL) { \
566 if ((vd)->io_stats != NULL) { \
572 if ((vd)->io_stats != NULL) { \
578 if ((vd)->io_stats != NULL) { \
584 if ((vd)->io_stats != NULL) { \
590 if ((vd)->io_stats != NULL) { \
595 #define VD_KSTAT_RUNQ_EXIT(vd) \ argument
596 if ((vd)->io_stats != NULL) { \
607 ASSERT((vd) != NULL); \
[all …]
/illumos-gate/usr/src/lib/libadm/common/
H A Drdwr_vtoc.c47 #define libadm_vtoc_copy(vs, vd) \ argument
50 vd->v_bootinfo[0] = (unsigned)vs->v_bootinfo[0]; \
51 vd->v_bootinfo[1] = (unsigned)vs->v_bootinfo[1]; \
53 vd->v_sanity = (unsigned)vs->v_sanity; \
54 vd->v_version = (unsigned)vs->v_version; \
56 vd->v_sectorsz = vs->v_sectorsz; \
57 vd->v_nparts = vs->v_nparts; \
58 vd->v_version = (unsigned)vs->v_version; \
62 vd->v_part[i].p_tag = vs->v_part[i].p_tag; \
63 vd->v_part[i].p_flag = vs->v_part[i].p_flag; \
[all …]

1234