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
         bp logical:        518656        avg:  11035
         bp physical:        64512        avg:   1372     
compression:   8.04
         bp allocated:      249856        avg:   5316     
compression:   2.08
         SPA allocated:     249856       used:  0.00%

but do we maintain any sort of mapping between the object  
instantiation and how many block pointers an "object" or file might  
consume on disk?

---
.je

On Nov 9, 2007, at 15:18, Bill Moore wrote:

> You can just do something like this:
>
>     # zfs list tank/home/billm
>     NAME                    USED  AVAIL  REFER  MOUNTPOINT
>     tank/home/billm        83.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
>
> Let me know if that causes any trouble.
>
>
> --Bill
>
> On Fri, Nov 09, 2007 at 12:14:07PM -0700, Jason J. W. Williams wrote:
>> 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 <filesystem>" 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 number of files a ZFS filesystem can
>> support (2^48 no?). Thank you in advance for your help.
>>
>> Best Regards,
>> Jason
>> _______________________________________________
>> zfs-discuss mailing list
>> zfs-discuss@opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to