Lines Matching defs:record
31 * fault. These are kept in a global list. Each record corresponds to a given
33 * or exported while the injection record exists.
102 * Returns true if the given record matches the I/O in progress.
106 zinject_record_t *record, int error)
112 record->zi_objset == DMU_META_OBJSET &&
113 record->zi_object == DMU_META_DNODE_OBJECT) {
114 if (record->zi_type == DMU_OT_NONE ||
115 type == record->zi_type)
116 return (record->zi_freq == 0 ||
117 spa_get_random(100) < record->zi_freq);
125 if (zb->zb_objset == record->zi_objset &&
126 zb->zb_object == record->zi_object &&
127 zb->zb_level == record->zi_level &&
128 zb->zb_blkid >= record->zi_start &&
129 zb->zb_blkid <= record->zi_end &&
130 error == record->zi_error)
131 return (record->zi_freq == 0 ||
132 spa_get_random(100) < record->zi_freq);
435 * record's zi_timer field. Thus if a handler in configured with
562 * Create a new handler for the given record. We add it to the list, adding
567 zio_inject_fault(char *name, int flags, int *id, zinject_record_t *record)
582 if (record->zi_cmd == ZINJECT_DELAY_IO) {
587 if (record->zi_timer == 0 || record->zi_nlanes == 0)
596 if (record->zi_nlanes >= UINT16_MAX)
612 handler->zi_record = *record;
662 * Returns the next record with an ID greater than that supplied to the
667 zinject_record_t *record)
681 *record = handler->zi_record;