Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2010 07:52:54 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/cddl/compat/opensolaris/sys time.h
Message-ID:  <201001250753.o0P7r9Mi000736@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001250753.o0P7r9Mi000736>