From owner-cvs-src-old@FreeBSD.ORG Mon Jan 25 07:53:09 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EBC7F106568B for ; Mon, 25 Jan 2010 07:53:09 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D9B378FC17 for ; Mon, 25 Jan 2010 07:53:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0P7r96e000737 for ; Mon, 25 Jan 2010 07:53:09 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0P7r9Mi000736 for cvs-src-old@freebsd.org; Mon, 25 Jan 2010 07:53:09 GMT (envelope-from delphij@repoman.freebsd.org) Message-Id: <201001250753.o0P7r9Mi000736@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to delphij@repoman.freebsd.org using -f From: Xin LI Date: Mon, 25 Jan 2010 07:52:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/cddl/compat/opensolaris/sys time.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 07:53:10 -0000 delphij 2010-01-25 07:52:54 UTC FreeBSD src repository Modified files: sys/cddl/compat/opensolaris/sys time.h Log: SVN rev 202964 on 2010-01-25 07:52:54Z by delphij On FreeBSD, time_t is 64-bit for all platforms except i386 and powerpc, where the type is 32-bit. ZFS can handle 64-bit timestamp internally but zfs_setattr() would check if the time value can fit, we change the checking macros to match 64-bit timestamp if the platform supports it. This change has some downsides like, while you can import zfs on 32-bit platforms, the timestamp would overflow if they are out of the range. This fixes the Y2.038K issue on platforms using 64-bit timestamps. Reviewed by: pjd MFC after: 1 month Revision Changes Path 1.5 +5 -0 src/sys/cddl/compat/opensolaris/sys/time.h