Lines Matching defs:record
30 * fault. These are kept in a global list. Each record corresponds to a given
32 * or exported while the injection record exists.
63 * Returns true if the given record matches the I/O in progress.
67 zinject_record_t *record, int error)
73 record->zi_objset == DMU_META_OBJSET &&
74 record->zi_object == DMU_META_DNODE_OBJECT) {
75 if (record->zi_type == DMU_OT_NONE ||
76 type == record->zi_type)
77 return (record->zi_freq == 0 ||
78 spa_get_random(100) < record->zi_freq);
86 if (zb->zb_objset == record->zi_objset &&
87 zb->zb_object == record->zi_object &&
88 zb->zb_level == record->zi_level &&
89 zb->zb_blkid >= record->zi_start &&
90 zb->zb_blkid <= record->zi_end &&
91 error == record->zi_error)
92 return (record->zi_freq == 0 ||
93 spa_get_random(100) < record->zi_freq);
383 * Create a new handler for the given record. We add it to the list, adding
388 zio_inject_fault(char *name, int flags, int *id, zinject_record_t *record)
418 handler->zi_record = *record;
438 * Returns the next record with an ID greater than that supplied to the
443 zinject_record_t *record)
457 *record = handler->zi_record;