Lines Matching refs:rec
165 zev_print_mark_payload(zev_mark_t *rec)
173 p = (uint8_t *)ZEV_PAYLOAD(rec);
174 for (i=0; i<rec->payload_len; i+=16) {
176 for (j=i; j<rec->payload_len && j<i+16; j++) {
189 for (j=i; j<rec->payload_len && j<i+16; j++) {
204 zev_error_t *rec = (zev_error_t *)buf;
205 time_t op_time = rec->op_time;
209 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
210 zpf(" guid: %llu", rec->guid);
212 zev_op_name[rec->failed_op - ZEV_OP_MIN]);
213 zpf(" message: %s", ZEV_ERRSTR(rec));
217 ct, zev_op_name[rec->op - ZEV_OP_MIN],
218 zev_op_name[rec->failed_op - ZEV_OP_MIN],
219 ZEV_ERRSTR(rec));
226 zev_mark_t *rec = (zev_mark_t *)buf;
227 time_t op_time = rec->op_time;
231 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
232 zpf(" guid: %llu", rec->guid);
233 zpf(" mark.id: %llu", rec->mark_id);
234 zpf(" payload.len: %llu", rec->payload_len);
235 if (rec->payload_len)
236 zev_print_mark_payload(rec);
241 ct, zev_op_name[rec->op - ZEV_OP_MIN], rec->guid,
242 rec->mark_id, rec->payload_len,
243 rec->payload_len, (char *)(rec + 1));
250 zev_zfs_mount_t *rec = (zev_zfs_mount_t *)buf;
251 time_t op_time = rec->op_time;
255 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
256 zpf(" guid: %llu", rec->guid);
257 zpf(" txg: %llu", rec->txg);
258 zpf(" dataset: %s", ZEV_DATASET(rec));
259 zpf(" mountpoint: %s", ZEV_MOUNTPOINT(rec));
260 zpf(" remount: %s", rec->remount ? "true" : "false");
261 zev_print_inode_info("root", &rec->root);
266 ct, zev_op_name[rec->op - ZEV_OP_MIN],
267 rec->guid,
268 rec->remount ? "true" : "false",
269 ZEV_DATASET(rec),
270 ZEV_MOUNTPOINT(rec));
277 zev_zfs_umount_t *rec = (zev_zfs_umount_t *)buf;
278 time_t op_time = rec->op_time;
282 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
283 zpf(" guid: %llu", rec->guid);
284 zpf(" txg: %llu", rec->txg);
285 zev_print_inode_info("covered", &rec->covered);
289 ct, zev_op_name[rec->op - ZEV_OP_MIN],
290 rec->guid);
297 zev_zvol_truncate_t *rec = (zev_zvol_truncate_t *)buf;
298 time_t op_time = rec->op_time;
302 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
303 zpf(" guid: %llu", rec->guid);
304 zpf(" txg: %llu", rec->txg);
305 zpf(" offset: %llu", rec->offset);
306 zpf(" length: %llu", rec->length);
310 ct, zev_op_name[rec->op - ZEV_OP_MIN],
311 rec->guid,
312 rec->offset,
313 rec->length);
326 zev_znode_close_after_update_t *rec =
328 time_t op_time = rec->op_time;
332 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
333 zpf(" guid: %llu", rec->guid);
334 zev_print_inode_info("file", &rec->file);
338 ct, zev_op_name[rec->op - ZEV_OP_MIN],
339 rec->guid,
340 rec->file.ino, rec->file.gen);
347 zev_znode_create_t *rec = (zev_znode_create_t *)buf;
348 time_t op_time = rec->op_time;
354 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
355 zpf(" guid: %llu", rec->guid);
356 zpf(" txg: %llu", rec->txg);
357 zpf(" name: '%s'", ZEV_NAME(rec));
358 sig = &rec->signature;
362 zev_print_inode_info("file", &rec->file);
363 zev_print_inode_info("parent", &rec->parent);
368 ct, zev_op_name[rec->op - ZEV_OP_MIN],
369 rec->guid,
370 rec->parent.ino, rec->parent.gen,
371 rec->file.ino, rec->file.gen,
372 rec->file.mtime, rec->parent.mtime,
373 ZEV_NAME(rec));
392 zev_znode_remove_t *rec = (zev_znode_remove_t *)buf;
393 time_t op_time = rec->op_time;
397 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
398 zpf(" guid: %llu", rec->guid);
399 zpf(" txg: %llu", rec->txg);
400 zpf(" file.name: '%s'", ZEV_NAME(rec));
401 zev_print_inode_info("file", &rec->file);
402 zev_print_inode_info("parent", &rec->parent);
407 ct, zev_op_name[rec->op - ZEV_OP_MIN],
408 rec->guid,
409 rec->parent.ino, rec->parent.gen,
410 rec->file.mtime,
411 ZEV_NAME(rec));
424 zev_znode_link_t *rec = (zev_znode_link_t *)buf;
425 time_t op_time = rec->op_time;
429 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
430 zpf(" guid: %llu", rec->guid);
431 zpf(" txg: %llu", rec->txg);
432 zpf(" link.name: '%s'", ZEV_NAME(rec));
433 zev_print_inode_info("file", &rec->file);
434 zev_print_inode_info("parent", &rec->parent);
439 ct, zev_op_name[rec->op - ZEV_OP_MIN],
440 rec->parent.ino, rec->parent.gen,
441 rec->file.ino, rec->file.gen,
442 rec->file.ctime, rec->parent.ctime,
443 ZEV_NAME(rec));
450 zev_znode_symlink_t *rec = (zev_znode_symlink_t *)buf;
451 time_t op_time = rec->op_time;
457 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
458 zpf(" guid: %llu", rec->guid);
459 zpf(" txg: %llu", rec->txg);
460 zpf(" symlink.name: '%s'", ZEV_NAME(rec));
461 zpf(" symlink.link: '%s'", ZEV_LINK(rec));
462 sig = &rec->signature;
466 zev_print_inode_info("file", &rec->file);
467 zev_print_inode_info("parent", &rec->parent);
472 ct, zev_op_name[rec->op - ZEV_OP_MIN],
473 rec->parent.ino, rec->parent.gen,
474 rec->file.ino, rec->file.gen,
475 ZEV_NAME(rec),
476 ZEV_LINK(rec));
483 zev_znode_rename_t *rec = (zev_znode_rename_t *)buf;
484 time_t op_time = rec->op_time;
488 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
489 zpf(" guid: %llu", rec->guid);
490 zpf(" txg: %llu", rec->txg);
491 zpf(" file.srcname: '%s'", ZEV_SRCNAME(rec));
492 zpf(" file.dstname: '%s'", ZEV_DSTNAME(rec));
493 zev_print_inode_info("file", &rec->file);
494 if (rec->clobbered_file.ino)
496 &rec->clobbered_file);
497 zev_print_inode_info("srcdir", &rec->srcdir);
498 zev_print_inode_info("dstdir", &rec->dstdir);
506 ct, zev_op_name[rec->op - ZEV_OP_MIN],
507 rec->srcdir.ino, rec->srcdir.gen,
508 rec->dstdir.ino, rec->dstdir.gen,
509 rec->file.ino, rec->file.gen,
510 rec->file.mtime, rec->file.ctime,
511 rec->srcdir.mtime, rec->srcdir.ctime,
512 rec->dstdir.mtime, rec->dstdir.ctime,
513 ZEV_SRCNAME(rec),
514 ZEV_DSTNAME(rec));
521 zev_znode_write_t *rec = (zev_znode_write_t *)buf;
522 time_t op_time = rec->op_time;
529 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
530 zpf(" guid: %llu", rec->guid);
531 zpf(" txg: %llu", rec->txg);
532 zpf(" offset: %llu", rec->offset);
533 zpf(" length: %llu", rec->length);
534 zev_print_inode_info("file", &rec->file);
536 for (i=0; i<rec->signature_cnt; i++) {
537 sig = (zev_sig_t *)ZEV_SIGNATURES(rec);
545 ct, zev_op_name[rec->op - ZEV_OP_MIN],
546 rec->file.ino, rec->file.gen,
547 rec->offset, rec->length);
560 zev_znode_setattr_t *rec = (zev_znode_setattr_t *)buf;
561 time_t op_time = rec->op_time;
565 zpf("%s %s", ct, zev_op_name[rec->op - ZEV_OP_MIN]);
566 zpf(" guid: %llu", rec->guid);
567 zpf(" txg: %llu", rec->txg);
568 zev_print_inode_info("file", &rec->file);
572 ct, zev_op_name[rec->op - ZEV_OP_MIN],
573 rec->file.ino, rec->file.gen, rec->file.mtime);
1306 zev_header_t *rec = (zev_header_t *)buf;
1313 zevstat.events[rec->op]++;
1315 to_find.guid = rec->guid;
1323 gt->guid = rec->guid;