Lines Matching full:zb
92 bookmark_to_name(zbookmark_phys_t *zb, char *buf, size_t len) in bookmark_to_name() argument
95 (u_longlong_t)zb->zb_objset, (u_longlong_t)zb->zb_object, in bookmark_to_name()
96 (u_longlong_t)zb->zb_level, (u_longlong_t)zb->zb_blkid); in bookmark_to_name()
130 name_to_bookmark(char *buf, zbookmark_phys_t *zb) in name_to_bookmark() argument
132 zb->zb_objset = zfs_strtonum(buf, &buf); in name_to_bookmark()
134 zb->zb_object = zfs_strtonum(buf + 1, &buf); in name_to_bookmark()
136 zb->zb_level = (int)zfs_strtonum(buf + 1, &buf); in name_to_bookmark()
138 zb->zb_blkid = zfs_strtonum(buf + 1, &buf); in name_to_bookmark()
143 zep_to_zb(uint64_t dataset, zbookmark_err_phys_t *zep, zbookmark_phys_t *zb) in zep_to_zb() argument
145 zb->zb_objset = dataset; in zep_to_zb()
146 zb->zb_object = zep->zb_object; in zep_to_zb()
147 zb->zb_level = zep->zb_level; in zep_to_zb()
148 zb->zb_blkid = zep->zb_blkid; in zep_to_zb()
183 spa_log_error(spa_t *spa, const zbookmark_phys_t *zb, const uint64_t birth) in spa_log_error() argument
208 search.se_bookmark = *zb; in spa_log_error()
215 new->se_bookmark = *zb; in spa_log_error()
223 new->se_zep.zb_object = zb->zb_object; in spa_log_error()
224 new->se_zep.zb_level = zb->zb_level; in spa_log_error()
225 new->se_zep.zb_blkid = zb->zb_blkid; in spa_log_error()
294 copyout_entry(const zbookmark_phys_t *zb, void *uaddr, uint64_t *count) in copyout_entry() argument
300 if (copyout(zb, (char *)uaddr + (*count) * sizeof (zbookmark_phys_t), in copyout_entry()
337 zbookmark_phys_t zb; in check_filesystem() local
338 zep_to_zb(head_ds, zep, &zb); in check_filesystem()
339 error = copyout_entry(&zb, uaddr, count); in check_filesystem()
408 zbookmark_phys_t zb; in check_filesystem() local
409 zep_to_zb(snap_obj, zep, &zb); in check_filesystem()
410 error = copyout_entry(&zb, uaddr, count); in check_filesystem()
486 zbookmark_phys_t zb; in process_error_block() local
487 zep_to_zb(head_ds, zep, &zb); in process_error_block()
488 int error = copyout_entry(&zb, uaddr, count); in process_error_block()
530 zbookmark_phys_t zb; in process_error_block() local
531 zep_to_zb(head_ds, zep, &zb); in process_error_block()
532 spa_remove_error(spa, &zb, zep->zb_birth); in process_error_block()
581 * Found an error matching healed zb, add zb to our in spa_add_healed_error()
667 remove_error_from_list(spa_t *spa, avl_tree_t *t, const zbookmark_phys_t *zb) in remove_error_from_list() argument
673 search.se_bookmark = *zb; in remove_error_from_list()
737 spa_remove_error(spa_t *spa, zbookmark_phys_t *zb, uint64_t birth) in spa_remove_error() argument
739 spa_add_healed_error(spa, spa->spa_errlog_last, zb, birth); in spa_remove_error()
740 spa_add_healed_error(spa, spa->spa_errlog_scrub, zb, birth); in spa_remove_error()
813 zbookmark_phys_t zb; in sync_upgrade_errlog() local
836 name_to_bookmark(za->za_name, &zb); in sync_upgrade_errlog()
839 zep.zb_object = zb.zb_object; in sync_upgrade_errlog()
840 zep.zb_level = zb.zb_level; in sync_upgrade_errlog()
841 zep.zb_blkid = zb.zb_blkid; in sync_upgrade_errlog()
853 int error = dsl_dataset_hold_obj_flags(dp, zb.zb_objset, in sync_upgrade_errlog()
975 zbookmark_phys_t zb; in process_error_log() local
976 name_to_bookmark(za->za_name, &zb); in process_error_log()
978 int error = copyout_entry(&zb, uaddr, count); in process_error_log()