From owner-cvs-src@FreeBSD.ORG Fri May 16 22:31:17 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85FBD1065671; Fri, 16 May 2008 22:31:17 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 76AB88FC14; Fri, 16 May 2008 22:31:17 +0000 (UTC) (envelope-from markus@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4GMVHW8085762; Fri, 16 May 2008 22:31:17 GMT (envelope-from markus@repoman.freebsd.org) Received: (from markus@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4GMVH7I085761; Fri, 16 May 2008 22:31:17 GMT (envelope-from markus) Message-Id: <200805162231.m4GMVH7I085761@repoman.freebsd.org> From: Markus Brueffer Date: Fri, 16 May 2008 22:31:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/udf udf_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 22:31:17 -0000 markus 2008-05-16 22:31:17 UTC FreeBSD src repository Modified files: sys/fs/udf udf_vnops.c Log: Fix and speedup timestamp calculations which is roughly based on the patch in the mentioned PR: - bounds check time->month as it is used as an array index - fix usage of time->month as array index (month is 1-12) - fix calculation based on time->day (day is 1-31) - fix the speedup code as it doesn't calculate correct timestamps before the year 2000 and reduce the number of calculation in the year-by-year code - speedup month calculations by replacing the array content with cumulative values - add microseconds calculation - fix an endian problem PR: kern/97786 Submitted by: Andriy Gapon Reviewed by: scottl (earlier version) Approved by: emax (mentor) MFC after: 1 week Revision Changes Path 1.69 +34 -22 src/sys/fs/udf/udf_vnops.c