Lines Matching +defs:val +defs:os
9 * or http://www.opensolaris.org/os/licensing.
366 mzap_open(objset_t *os, uint64_t obj, dmu_buf_t *db)
380 zap->zap_objset = os;
469 objset_t *os = dmu_buf_get_objset(db);
484 zap = mzap_open(os, obj, db);
512 zap->zap_objset = os;
533 VERIFY0(dmu_object_set_blocksize(os, obj, newsz, 0, tx));
561 zap_lockdir(objset_t *os, uint64_t obj, dmu_tx_t *tx,
567 err = dmu_buf_hold(os, obj, 0, tag, &db, DMU_READ_NO_PREFETCH);
635 mzap_create_impl(objset_t *os, uint64_t obj, int normflags, zap_flags_t flags,
641 VERIFY(0 == dmu_buf_hold(os, obj, 0, FTAG, &db, DMU_READ_NO_PREFETCH));
661 VERIFY(0 == zap_lockdir(os, obj, tx, RW_WRITER,
669 zap_create_claim(objset_t *os, uint64_t obj, dmu_object_type_t ot,
672 return (zap_create_claim_norm(os, obj,
677 zap_create_claim_norm(objset_t *os, uint64_t obj, int normflags,
683 err = dmu_object_claim(os, obj, ot, 0, bonustype, bonuslen, tx);
686 mzap_create_impl(os, obj, normflags, 0, tx);
691 zap_create(objset_t *os, dmu_object_type_t ot,
694 return (zap_create_norm(os, 0, ot, bonustype, bonuslen, tx));
698 zap_create_norm(objset_t *os, int normflags, dmu_object_type_t ot,
701 uint64_t obj = dmu_object_alloc(os, ot, 0, bonustype, bonuslen, tx);
703 mzap_create_impl(os, obj, normflags, 0, tx);
708 zap_create_flags(objset_t *os, int normflags, zap_flags_t flags,
712 uint64_t obj = dmu_object_alloc(os, ot, 0, bonustype, bonuslen, tx);
719 VERIFY(dmu_object_set_blocksize(os, obj,
722 mzap_create_impl(os, obj, normflags, flags, tx);
727 zap_destroy(objset_t *os, uint64_t zapobj, dmu_tx_t *tx)
735 return (dmu_object_free(os, zapobj, tx));
754 zap_count(objset_t *os, uint64_t zapobj, uint64_t *count)
759 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
817 zap_lookup(objset_t *os, uint64_t zapobj, const char *name,
820 return (zap_lookup_norm(os, zapobj, name, integer_size,
867 zap_lookup_norm(objset_t *os, uint64_t zapobj, const char *name,
875 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
912 zap_prefetch_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
919 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
935 zap_lookup_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
942 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
959 zap_contains(objset_t *os, uint64_t zapobj, const char *name)
961 int err = zap_lookup_norm(os, zapobj, name, 0,
969 zap_length(objset_t *os, uint64_t zapobj, const char *name,
977 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
1004 zap_length_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
1011 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);
1070 zap_add(objset_t *os, uint64_t zapobj, const char *key,
1072 const void *val, dmu_tx_t *tx)
1077 const uint64_t *intval = val;
1080 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, TRUE, FTAG, &zap);
1089 err = fzap_add(zn, integer_size, num_integers, val, FTAG, tx);
1095 err = fzap_add(zn, integer_size, num_integers, val,
1115 zap_add_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
1117 const void *val, dmu_tx_t *tx)
1123 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, TRUE, FTAG, &zap);
1131 err = fzap_add(zn, integer_size, num_integers, val, FTAG, tx);
1140 zap_update(objset_t *os, uint64_t zapobj, const char *name,
1141 int integer_size, uint64_t num_integers, const void *val, dmu_tx_t *tx)
1146 const uint64_t *intval = val;
1156 (void) zap_lookup(os, zapobj, name, 8, 1, &oldval);
1159 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, TRUE, FTAG, &zap);
1168 err = fzap_update(zn, integer_size, num_integers, val,
1178 val, FTAG, tx);
1198 zap_update_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
1200 int integer_size, uint64_t num_integers, const void *val, dmu_tx_t *tx)
1206 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, TRUE, FTAG, &zap);
1214 err = fzap_update(zn, integer_size, num_integers, val, FTAG, tx);
1223 zap_remove(objset_t *os, uint64_t zapobj, const char *name, dmu_tx_t *tx)
1225 return (zap_remove_norm(os, zapobj, name, MT_EXACT, tx));
1229 zap_remove_norm(objset_t *os, uint64_t zapobj, const char *name,
1237 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, FALSE, FTAG, &zap);
1264 zap_remove_uint64(objset_t *os, uint64_t zapobj, const uint64_t *key,
1271 err = zap_lockdir(os, zapobj, tx, RW_WRITER, TRUE, FALSE, FTAG, &zap);
1290 zap_cursor_init_serialized(zap_cursor_t *zc, objset_t *os, uint64_t zapobj,
1293 zc->zc_objset = os;
1303 zap_cursor_init(zap_cursor_t *zc, objset_t *os, uint64_t zapobj)
1305 zap_cursor_init_serialized(zc, os, zapobj, 0);
1419 zap_get_stats(objset_t *os, uint64_t zapobj, zap_stats_t *zs)
1424 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, FTAG, &zap);