summaryrefslogtreecommitdiffstats
path: root/module/zfs/zap.c
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2014-11-03 11:12:40 -0800
committerBrian Behlendorf <[email protected]>2015-05-04 09:41:09 -0700
commit83017311e4a64bc49d43d1f8c93fc0e2263bb41b (patch)
tree7a428bfc65087cc6c90bf86436b3248f34bc449c /module/zfs/zap.c
parent6102d0376ecfbcc1f63819bc1046ee78b7f3d4fc (diff)
Illumos 3654,3656
3654 zdb should print number of ganged blocks 3656 remove unused function zap_cursor_move_to_key() Reviewed by: George Wilson <[email protected]> Reviewed by: Christopher Siden <[email protected]> Reviewed by: Dan McDonald <[email protected]> Approved by: Garrett D'Amore <[email protected]> References: https://www.illumos.org/issues/3654 https://www.illumos.org/issues/3656 https://github.com/illumos/illumos-gate/commit/d5ee8a1 Porting Notes: 3655 and 3657 were part of this commit but those hunks were dropped since they apply to mdb. Ported by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zap.c')
-rw-r--r--module/zfs/zap.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/module/zfs/zap.c b/module/zfs/zap.c
index fa2dfc7d5..c5ea392b6 100644
--- a/module/zfs/zap.c
+++ b/module/zfs/zap.c
@@ -1251,31 +1251,6 @@ zap_stats_ptrtbl(zap_t *zap, uint64_t *tbl, int len, zap_stats_t *zs)
}
}
-int
-fzap_cursor_move_to_key(zap_cursor_t *zc, zap_name_t *zn)
-{
- int err;
- zap_leaf_t *l;
- zap_entry_handle_t zeh;
-
- if (zn->zn_key_orig_numints * zn->zn_key_intlen > ZAP_MAXNAMELEN)
- return (SET_ERROR(ENAMETOOLONG));
-
- err = zap_deref_leaf(zc->zc_zap, zn->zn_hash, NULL, RW_READER, &l);
- if (err != 0)
- return (err);
-
- err = zap_leaf_lookup(l, zn, &zeh);
- if (err == 0) {
- zc->zc_leaf = l;
- zc->zc_hash = zeh.zeh_hash;
- zc->zc_cd = zeh.zeh_cd;
- }
-
- rw_exit(&l->l_rwlock);
- return (err);
-}
-
void
fzap_get_stats(zap_t *zap, zap_stats_t *zs)
{