]> granicus.if.org Git - zfs/commit
Fix zfs_getattr_fast types
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Jan 2014 23:17:24 +0000 (00:17 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 9 Jan 2014 23:50:23 +0000 (15:50 -0800)
commitb585bc4afaf37b744acba6be87f5909b4564b845
tree7e8b270cb5ec3c94ed98576e5beab7692d2c147c
parentaa0218d6a12814fac50b287214f9f3b0b99e11b1
Fix zfs_getattr_fast types

On Sparc sp->blksize will be a 64-bit value which is then cast
incorrectly to a 32-bit value.  For big endian systems this
results in an incorrect value for sp->blksize.  To resolve the
problem local variables of the correct size are used and then
assigned to sp->blksize.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: marku89 <mar42@kola.li>
Issue #1700
module/zfs/zfs_vnops.c