On 24/02/2010 21:35, Jesus Cea wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like to know the blocksize of a particular file. I know the
blocksize for a particular file is decided at creation time, in fuction
of the write size done and the recordsize property of the dataset.
How can I access that information?. Some zdb magic?.
<pre>
mi...@r600:~# ls -li /bin/bash
1713998 -r-xr-xr-x 1 root bin 799040 2009-10-30 00:41 /bin/bash
mi...@r600:~# zdb -v rpool/ROOT/osol-916 1713998
Dataset rpool/ROOT/osol-916 [ZPL], ID 302, cr_txg 6206087, 24.2G,
1053147 objects
Object lvl iblk dblk dsize lsize %full type
1713998 2 16K 128K 898K 896K 100.00 ZFS plain file
mi...@r600:~#
</pre>
--
Robert Milkowski
http://milek.blogspot.com
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss