Lines Matching refs:lr
154 static int zvol_get_data(void *arg, lr_write_t *lr, char *buf, zio_t *zio);
369 zvol_replay_truncate(zvol_state_t *zv, lr_truncate_t *lr, boolean_t byteswap) in zvol_replay_truncate() argument
374 byteswap_uint64_array(lr, sizeof (*lr)); in zvol_replay_truncate()
376 offset = lr->lr_offset; in zvol_replay_truncate()
377 length = lr->lr_length; in zvol_replay_truncate()
387 zvol_replay_write(zvol_state_t *zv, lr_write_t *lr, boolean_t byteswap) in zvol_replay_write() argument
390 char *data = (char *)(lr + 1); /* data follows lr_write_t */ in zvol_replay_write()
396 byteswap_uint64_array(lr, sizeof (*lr)); in zvol_replay_write()
398 offset = lr->lr_offset; in zvol_replay_write()
399 length = lr->lr_length; in zvol_replay_write()
402 if (lr->lr_common.lrc_reclen == sizeof (lr_write_t)) { in zvol_replay_write()
403 uint64_t blocksize = BP_GET_LSIZE(&lr->lr_blkptr); in zvol_replay_write()
425 zvol_replay_err(zvol_state_t *zv, lr_t *lr, boolean_t byteswap) in zvol_replay_err() argument
981 zvol_get_data(void *arg, lr_write_t *lr, char *buf, zio_t *zio) in zvol_get_data() argument
986 uint64_t offset = lr->lr_offset; in zvol_get_data()
987 uint64_t size = lr->lr_length; /* length of user data */ in zvol_get_data()
988 blkptr_t *bp = &lr->lr_blkptr; in zvol_get_data()
1028 error = dmu_sync(zio, lr->lr_common.lrc_txg, in zvol_get_data()
1069 lr_write_t *lr; in zvol_log_write() local
1089 itx = zil_itx_create(TX_WRITE, sizeof (*lr) + in zvol_log_write()
1091 lr = (lr_write_t *)&itx->itx_lr; in zvol_log_write()
1093 ZVOL_OBJ, off, len, lr + 1, DMU_READ_NO_PREFETCH) != 0) { in zvol_log_write()
1095 itx = zil_itx_create(TX_WRITE, sizeof (*lr)); in zvol_log_write()
1096 lr = (lr_write_t *)&itx->itx_lr; in zvol_log_write()
1103 lr->lr_foid = ZVOL_OBJ; in zvol_log_write()
1104 lr->lr_offset = off; in zvol_log_write()
1105 lr->lr_length = len; in zvol_log_write()
1106 lr->lr_blkoff = 0; in zvol_log_write()
1107 BP_ZERO(&lr->lr_blkptr); in zvol_log_write()
1621 lr_truncate_t *lr; in zvol_log_truncate() local
1627 itx = zil_itx_create(TX_TRUNCATE, sizeof (*lr)); in zvol_log_truncate()
1628 lr = (lr_truncate_t *)&itx->itx_lr; in zvol_log_truncate()
1629 lr->lr_foid = ZVOL_OBJ; in zvol_log_truncate()
1630 lr->lr_offset = off; in zvol_log_truncate()
1631 lr->lr_length = len; in zvol_log_truncate()