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

Function zap_normalize

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

Source from the content-addressed store, hash-verified

131}
132
133static int
134zap_normalize(zap_t *zap, const char *name, char *namenorm, int normflags)
135{
136 ASSERT(!(zap_getflags(zap) & ZAP_FLAG_UINT64_KEY));
137
138 size_t inlen = strlen(name) + 1;
139 size_t outlen = ZAP_MAXNAMELEN;
140
141 int err = 0;
142 (void) u8_textprep_str((char *)name, &inlen, namenorm, &outlen,
143 normflags | U8_TEXTPREP_IGNORE_NULL | U8_TEXTPREP_IGNORE_INVALID,
144 U8_UNICODE_LATEST, &err);
145
146 return (err);
147}
148
149boolean_t
150zap_match(zap_name_t *zn, const char *matchname)

Callers 2

zap_matchFunction · 0.85
zap_name_allocFunction · 0.85

Calls 2

zap_getflagsFunction · 0.85
u8_textprep_strFunction · 0.85

Tested by

no test coverage detected