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

Function ztest_setattr

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

Source from the content-addressed store, hash-verified

2553}
2554
2555static int
2556ztest_setattr(ztest_ds_t *zd, uint64_t object)
2557{
2558 lr_setattr_t *lr;
2559 int error;
2560
2561 lr = ztest_lr_alloc(sizeof (*lr), NULL);
2562
2563 lr->lr_foid = object;
2564 lr->lr_size = 0;
2565 lr->lr_mode = 0;
2566
2567 error = ztest_replay_setattr(zd, lr, B_FALSE);
2568
2569 ztest_lr_free(lr, sizeof (*lr), NULL);
2570
2571 return (error);
2572}
2573
2574static void
2575ztest_prealloc(ztest_ds_t *zd, uint64_t object, uint64_t offset, uint64_t size)

Callers 1

ztest_ioFunction · 0.85

Calls 3

ztest_lr_allocFunction · 0.85
ztest_replay_setattrFunction · 0.85
ztest_lr_freeFunction · 0.85

Tested by

no test coverage detected