Deleted Added
full compact
zap.c (236884) zap.c (239774)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1080 unchanged lines hidden (view full) ---

1089{
1090 char name[20];
1091
1092 (void) snprintf(name, sizeof (name), "%llx", (longlong_t)key);
1093 return (zap_add(os, obj, name, 8, 1, &value, tx));
1094}
1095
1096int
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 1080 unchanged lines hidden (view full) ---

1089{
1090 char name[20];
1091
1092 (void) snprintf(name, sizeof (name), "%llx", (longlong_t)key);
1093 return (zap_add(os, obj, name, 8, 1, &value, tx));
1094}
1095
1096int
1097zap_update_int_key(objset_t *os, uint64_t obj,
1098 uint64_t key, uint64_t value, dmu_tx_t *tx)
1099{
1100 char name[20];
1101
1102 (void) snprintf(name, sizeof (name), "%llx", (longlong_t)key);
1103 return (zap_update(os, obj, name, 8, 1, &value, tx));
1104}
1105
1106int
1097zap_lookup_int_key(objset_t *os, uint64_t obj, uint64_t key, uint64_t *valuep)
1098{
1099 char name[20];
1100
1101 (void) snprintf(name, sizeof (name), "%llx", (longlong_t)key);
1102 return (zap_lookup(os, obj, name, 8, 1, valuep));
1103}
1104

--- 264 unchanged lines hidden ---
1107zap_lookup_int_key(objset_t *os, uint64_t obj, uint64_t key, uint64_t *valuep)
1108{
1109 char name[20];
1110
1111 (void) snprintf(name, sizeof (name), "%llx", (longlong_t)key);
1112 return (zap_lookup(os, obj, name, 8, 1, valuep));
1113}
1114

--- 264 unchanged lines hidden ---