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

Function ztest_random_dsl_prop

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

Source from the content-addressed store, hash-verified

1346}
1347
1348static uint64_t
1349ztest_random_dsl_prop(zfs_prop_t prop)
1350{
1351 uint64_t value;
1352
1353 do {
1354 value = zfs_prop_random_value(prop, ztest_random(-1ULL));
1355 } while (prop == ZFS_PROP_CHECKSUM && value == ZIO_CHECKSUM_OFF);
1356
1357 return (value);
1358}
1359
1360static int
1361ztest_dsl_prop_set_uint64(char *osname, zfs_prop_t prop, uint64_t value,

Callers 3

ztest_ioFunction · 0.85
ztest_dmu_read_writeFunction · 0.85
ztest_dsl_prop_get_setFunction · 0.85

Calls 2

zfs_prop_random_valueFunction · 0.85
ztest_randomFunction · 0.85

Tested by

no test coverage detected