On Fri, May 12, 2006 at 12:36:53PM -0500, Anton Rang wrote:
> >We might want an interface for the app to know what the natural block
> >size of the file is, so it can read at proper file offsets.
> 
> Seems that stat(2) could be used for this ...
> 
>      long     st_blksize;  /* Preferred I/O block size */

And in fact, it is! :-)

In general, this will be 128k on ZFS filesystems.  If you have changed
the 'recordsize' property, then it will be that value (for files created
after the property was changed).

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

Reply via email to