| 2534 | } |
| 2535 | |
| 2536 | static int |
| 2537 | ztest_truncate(ztest_ds_t *zd, uint64_t object, uint64_t offset, uint64_t size) |
| 2538 | { |
| 2539 | lr_truncate_t *lr; |
| 2540 | int error; |
| 2541 | |
| 2542 | lr = ztest_lr_alloc(sizeof (*lr), NULL); |
| 2543 | |
| 2544 | lr->lr_foid = object; |
| 2545 | lr->lr_offset = offset; |
| 2546 | lr->lr_length = size; |
| 2547 | |
| 2548 | error = ztest_replay_truncate(zd, lr, B_FALSE); |
| 2549 | |
| 2550 | ztest_lr_free(lr, sizeof (*lr), NULL); |
| 2551 | |
| 2552 | return (error); |
| 2553 | } |
| 2554 | |
| 2555 | static int |
| 2556 | ztest_setattr(ztest_ds_t *zd, uint64_t object) |
no test coverage detected