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

Function zap_match

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

Source from the content-addressed store, hash-verified

147}
148
149boolean_t
150zap_match(zap_name_t *zn, const char *matchname)
151{
152 ASSERT(!(zap_getflags(zn->zn_zap) & ZAP_FLAG_UINT64_KEY));
153
154 if (zn->zn_matchtype & MT_NORMALIZE) {
155 char norm[ZAP_MAXNAMELEN];
156
157 if (zap_normalize(zn->zn_zap, matchname, norm,
158 zn->zn_normflags) != 0)
159 return (B_FALSE);
160
161 return (strcmp(zn->zn_key_norm, norm) == 0);
162 } else {
163 return (strcmp(zn->zn_key_orig, matchname) == 0);
164 }
165}
166
167void
168zap_name_free(zap_name_t *zn)

Callers 3

zap_leaf_array_matchFunction · 0.85
mze_findFunction · 0.85

Calls 3

zap_getflagsFunction · 0.85
zap_normalizeFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected