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 */
This isn't particularly useful for databases if they already have a
fixed page size, though.
There isn't a comparable way for the application to indicate a record
size to the file system, and there probably ought to be, particularly
since the size of writes used to initially create a file (if any) may
be quite different than the size of writes used for updating the file.
(In the long term, it might be interesting to study dynamically
splitting
blocks which are written using small record sizes.)
-- Anton
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss