Searched refs:l2dhdr (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_import.c | 172 l2arc_dev_hdr_phys_t *l2dhdr; in zpool_clear_label() local 185 if ((l2dhdr = calloc(1, sizeof (l2arc_dev_hdr_phys_t))) == NULL) { in zpool_clear_label() 246 memset(l2dhdr, 0, sizeof (l2arc_dev_hdr_phys_t)); in zpool_clear_label() 247 if (pwrite64(fd, l2dhdr, sizeof (l2arc_dev_hdr_phys_t), in zpool_clear_label() 254 free(l2dhdr); in zpool_clear_label()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | arc.c | 7699 l2arc_dev_hdr_phys_t *l2dhdr; in l2arc_write_done() local 7708 l2dhdr = dev->l2ad_dev_hdr; in l2arc_write_done() 7840 bzero(l2dhdr, dev->l2ad_dev_hdr_asize); in l2arc_write_done() 7842 bzero(&l2dhdr->dh_start_lbps[i], in l2arc_write_done() 7847 bcopy(lb_ptr_buf->lb_ptr, &l2dhdr->dh_start_lbps[i], in l2arc_write_done() 8509 l2arc_dev_hdr_phys_t *l2dhdr = dev->l2ad_dev_hdr; in l2arc_write_buffers() local 8728 if (dev->l2ad_evict != l2dhdr->dh_evict) in l2arc_write_buffers() 8956 l2arc_dev_hdr_phys_t *l2dhdr; in l2arc_rebuild_vdev() local 8963 l2dhdr = dev->l2ad_dev_hdr; in l2arc_rebuild_vdev() 9018 bzero(l2dhdr, l2dhdr_asize); in l2arc_rebuild_vdev() [all …]
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 2746 dump_l2arc_log_blocks(int fd, l2arc_dev_hdr_phys_t l2dhdr, in dump_l2arc_log_blocks() argument 2759 bcopy((&l2dhdr)->dh_start_lbps, lbps, sizeof (lbps)); in dump_l2arc_log_blocks() 2761 dev.l2ad_evict = l2dhdr.dh_evict; in dump_l2arc_log_blocks() 2762 dev.l2ad_start = l2dhdr.dh_start; in dump_l2arc_log_blocks() 2763 dev.l2ad_end = l2dhdr.dh_end; in dump_l2arc_log_blocks() 2765 if (l2dhdr.dh_start_lbps[0].lbp_daddr == 0) { in dump_l2arc_log_blocks() 2777 dev.l2ad_first = !!(l2dhdr.dh_flags & L2ARC_DEV_HDR_EVICT_FIRST); in dump_l2arc_log_blocks() 2837 dump_l2arc_log_entries(l2dhdr.dh_log_entries, in dump_l2arc_log_blocks() 2862 l2arc_dev_hdr_phys_t l2dhdr, rebuild; in dump_l2arc_header() local 2865 bzero(&l2dhdr, sizeof (l2dhdr)); in dump_l2arc_header() [all …]
|