| 1115 | } |
| 1116 | |
| 1117 | int |
| 1118 | zap_contains(objset_t *os, uint64_t zapobj, const char *name) |
| 1119 | { |
| 1120 | int err = zap_lookup_norm(os, zapobj, name, 0, |
| 1121 | 0, NULL, 0, NULL, 0, NULL); |
| 1122 | if (err == EOVERFLOW || err == EINVAL) |
| 1123 | err = 0; /* found, but skipped reading the value */ |
| 1124 | return (err); |
| 1125 | } |
| 1126 | |
| 1127 | int |
| 1128 | zap_length(objset_t *os, uint64_t zapobj, const char *name, |
no test coverage detected