svn commit: r206129 - head/sys/kern

Peter Jeremy peterjeremy at acm.org
Sun Apr 4 21:03:21 UTC 2010


On 2010-Apr-03 08:39:00 +0000, Andriy Gapon <avg at FreeBSD.org> wrote:
>Author: avg
>Date: Sat Apr  3 08:39:00 2010
>New Revision: 206129
>URL: http://svn.freebsd.org/changeset/base/206129
>
>Log:
>  vn_stat: take into account va_blocksize when setting st_blksize
>  
>  As currently st_blksize is always PAGE_SIZE, it is playing safe to not
>  use any smaller value.  For some cases this might not be optimal, but
>  at least nothing should get broken.

I haven't verified it but, based on a quick look at the change, I
suspect this will trigger the problem in bin/144446.  Quick summary:
db(3) has restrictions on its internal bucket size but initializes it
from st_blksize with no sanity checking and ZFS can report blocksizes
outside the allowed bucket size range for db(3).

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20100404/1f12ce89/attachment.pgp


More information about the svn-src-all mailing list