Hey Bill:
what's an object here? or do we have a mapping between "objects" and
block pointers?
for example a zdb -bb might show:
th37 # zdb -bb rz-7
Traversing all blocks to verify nothing leaked ...
No leaks (block sum matches space maps exactly)
bp count: 47
You can just do something like this:
# zfs list tank/home/billm
NAMEUSED AVAIL REFER MOUNTPOINT
tank/home/billm83.9G 5.56T 74.1G /export/home/billm
# zdb tank/home/billm
Dataset tank/home/billm [ZPL], ID 83, cr_txg 541, 74.1G, 111066 objects
L
Hi Guys,
Someone asked me how to count the number of inodes/objects in a ZFS
filesystem and I wasn't exactly sure. "zdb -dv " seems
like a likely candidate but I wanted to find out for sure. As to why
you'd want to know this, I don't know their reasoning but I assume it
has to do with the maximum