MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ztest_truncate

Function ztest_truncate

freebsd/contrib/openzfs/cmd/ztest/ztest.c:2536–2553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2534}
2535
2536static int
2537ztest_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
2555static int
2556ztest_setattr(ztest_ds_t *zd, uint64_t object)

Callers 2

ztest_ioFunction · 0.85
ztest_dmu_preallocFunction · 0.85

Calls 3

ztest_lr_allocFunction · 0.85
ztest_replay_truncateFunction · 0.85
ztest_lr_freeFunction · 0.85

Tested by

no test coverage detected