mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Illumos #3104: eliminate empty bpobjs
3104 eliminate empty bpobjs Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Christopher Siden <chris.siden@delphix.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Eric Schrock <eric.schrock@delphix.com> References: illumos/illumos-gate@f174573681 illumos changeset: 13782:8f78aae28a63 https://www.illumos.org/issues/3104 Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
91579709fc
commit
753c38392d
@@ -1093,6 +1093,16 @@ zap_add_int_key(objset_t *os, uint64_t obj,
|
||||
return (zap_add(os, obj, name, 8, 1, &value, tx));
|
||||
}
|
||||
|
||||
int
|
||||
zap_update_int_key(objset_t *os, uint64_t obj,
|
||||
uint64_t key, uint64_t value, dmu_tx_t *tx)
|
||||
{
|
||||
char name[20];
|
||||
|
||||
(void) snprintf(name, sizeof (name), "%llx", (longlong_t)key);
|
||||
return (zap_update(os, obj, name, 8, 1, &value, tx));
|
||||
}
|
||||
|
||||
int
|
||||
zap_lookup_int_key(objset_t *os, uint64_t obj, uint64_t key, uint64_t *valuep)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user