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

Reply via email to