freebsd-nq/sys/cddl
Martin Matuska 4530e5f790 For ZFS, change the type of clock_t to int64_t.
The clock_t type in OpenSolaris is long (int64_t on amd64).
On FreeBSD clock_t is int32_t. The clock_t type is used in several places
in the ZFS code to store system uptime in milliseconds ("seconds * hz").

With hz=1000 we have a 32-bit integer overflow in 24 days, 20 hours,
31 minutes and 23.648 seconds. This has a user reported negative impact
on l2arc_feed_thread() and may cause unexpected results from other functions
using clock_t.

Reported by:	Artem Belevich <fbsdlist@src.cx> on freebsd-fs@
MFC after:	1 week
2011-02-01 14:28:50 +00:00
..
boot/zfs Forgot to commit this file. Add ZPOOL_CONFIG_IS_LOG. 2010-09-10 04:44:13 +00:00
compat/opensolaris For ZFS, change the type of clock_t to int64_t. 2011-02-01 14:28:50 +00:00
contrib/opensolaris Add MNT_NFS4ACLS to ZFS mount flags. It's not conditional, since there 2011-01-19 17:11:52 +00:00
dev cyclic xcall: use smp_no_rendevous_barrier as setup function parameter 2010-12-17 18:22:50 +00:00