MCPcopy Create free account
hub / github.com/F-Stack/f-stack / count_block_cb

Function count_block_cb

freebsd/contrib/openzfs/cmd/zdb/zdb.c:6062–6075  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

6060
6061/* ARGSUSED */
6062static int
6063count_block_cb(void *arg, const blkptr_t *bp, dmu_tx_t *tx)
6064{
6065 zdb_cb_t *zcb = arg;
6066
6067 if (dump_opt['b'] >= 5) {
6068 char blkbuf[BP_SPRINTF_LEN];
6069 snprintf_blkptr(blkbuf, sizeof (blkbuf), bp);
6070 (void) printf("[%s] %s\n",
6071 "deferred free", blkbuf);
6072 }
6073 zdb_count_block(zcb, NULL, bp, ZDB_OT_DEFERRED);
6074 return (0);
6075}
6076
6077/*
6078 * Iterate over livelists which have been destroyed by the user but

Callers 1

bpobj_count_block_cbFunction · 0.85

Calls 3

snprintf_blkptrFunction · 0.85
zdb_count_blockFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected