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

Function zap_length_uint64

freebsd/contrib/openzfs/module/zfs/zap_micro.c:1160–1179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158}
1159
1160int
1161zap_length_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
1162 int key_numints, uint64_t *integer_size, uint64_t *num_integers)
1163{
1164 zap_t *zap;
1165
1166 int err =
1167 zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
1168 if (err != 0)
1169 return (err);
1170 zap_name_t *zn = zap_name_alloc_uint64(zap, key, key_numints);
1171 if (zn == NULL) {
1172 zap_unlockdir(zap, FTAG);
1173 return (SET_ERROR(ENOTSUP));
1174 }
1175 err = fzap_length(zn, integer_size, num_integers);
1176 zap_name_free(zn);
1177 zap_unlockdir(zap, FTAG);
1178 return (err);
1179}
1180
1181static void
1182mzap_addent(zap_name_t *zn, uint64_t value)

Callers 1

ddt_zap_lookupFunction · 0.85

Calls 5

zap_lockdirFunction · 0.85
zap_name_alloc_uint64Function · 0.85
zap_unlockdirFunction · 0.85
fzap_lengthFunction · 0.85
zap_name_freeFunction · 0.85

Tested by

no test coverage detected