Lines Matching defs:lsize
3829 char iblk[32], dblk[32], lsize[32], asize[32], fill[32], dnsize[32];
3837 _Static_assert(sizeof (lsize) >= NN_NUMBUF_SZ, "lsize truncated");
3845 "lsize", "%full", "type");
3891 zdb_nicenum(doi.doi_max_offset, lsize, sizeof (lsize));
3931 asize, dnsize, lsize, fill, zdb_ot_name(doi.doi_type), aux);
5661 * The number of separate histograms processed for psize, lsize and asize.
5668 * the count, length and cumulative length of the psize, lsize and
5698 * Setup the histogram arrays (psize, lsize, and asize).
5707 parm_histo[1].name = "lsize";
5786 * for psize, lsize and asize
7292 char csize[32], lsize[32], psize[32], asize[32];
7306 _Static_assert(sizeof (lsize) >= NN_NUMBUF_SZ,
7307 "lsize truncated");
7361 zdb_nicenum(zb->zb_lsize, lsize,
7362 sizeof (lsize));
7373 csize, lsize, psize, asize, avg,
7399 zdb_nicenum(mdstats->zb_lsize, lsize,
7400 sizeof (lsize));
7411 csize, lsize, psize, asize, avg,
8707 zdb_parse_block_sizes(char *sizes, uint64_t *lsize, uint64_t *psize)
8718 *lsize = strtoull(s0, NULL, 16);
8719 *psize = s1 ? strtoull(s1, NULL, 16) : *lsize;
8720 return (*lsize >= *psize && *psize > 0);
8726 try_decompress_block(abd_t *pabd, uint64_t lsize, uint64_t psize,
8733 (u_longlong_t)lsize,
8742 * lsize or if it left some bytes unwritten.
8745 memset(lbuf, 0x00, lsize);
8746 memset(lbuf2, 0xff, lsize);
8749 abd_get_from_buf_struct(&labd, lbuf, lsize);
8750 abd_get_from_buf_struct(&labd2, lbuf2, lsize);
8754 &labd, psize, lsize, NULL) == 0 &&
8756 &labd2, psize, lsize, NULL) == 0 &&
8757 memcmp(lbuf, lbuf2, lsize) == 0)
8767 zdb_decompress_block(abd_t *pabd, void *buf, void *lbuf, uint64_t lsize,
8771 uint64_t orig_lsize = lsize;
8807 if (lsize == psize)
8808 lsize += SPA_MINBLOCKSIZE;
8810 maxlsize = lsize;
8812 for (; lsize <= maxlsize; lsize += SPA_MINBLOCKSIZE) {
8814 if (try_decompress_block(pabd, lsize, psize, flags,
8824 for (lsize = orig_lsize; lsize <= maxlsize;
8825 lsize += SPA_MINBLOCKSIZE) {
8826 if (try_decompress_block(pabd, lsize, psize, flags,
8842 return (lsize > maxlsize ? -1 : lsize);
8849 * pool:vdev_specifier:offset:[lsize/]psize[:flags]
8872 uint64_t offset = 0, psize = 0, lsize = 0, blkptr_offset = 0;
8891 if (!zdb_parse_block_sizes(sizes, &lsize, &psize))
8893 if (!IS_P2ALIGNED(psize, DEV_BSIZE) || !IS_P2ALIGNED(lsize, DEV_BSIZE))
8981 BP_SET_LSIZE(bp, lsize);
9019 uint64_t orig_lsize = lsize;
9022 lsize = zdb_decompress_block(pabd, buf, lbuf,
9023 lsize, psize, flags);
9024 if (lsize == -1) {
9029 buf = abd_borrow_buf_copy(pabd, lsize);
9042 abd_return_buf_copy(pabd, buf, lsize);
9045 lsize = zdb_decompress_block(pabd, buf,
9046 lbuf, lsize, psize, flags);
9049 if (lsize == -1 || zfs_blkptr_verify(spa, b,
9061 zdb_dump_block_raw(buf, lsize, flags);
9068 zdb_dump_block(thing, buf, lsize, flags);
9113 zio_checksum_compute(ck_zio, ck, pabd, lsize);
9131 abd_return_buf_copy(pabd, buf, lsize);