| 1158 | } |
| 1159 | |
| 1160 | int |
| 1161 | zap_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 | |
| 1181 | static void |
| 1182 | mzap_addent(zap_name_t *zn, uint64_t value) |
no test coverage detected