From owner-cvs-src@FreeBSD.ORG Thu Apr 13 19:37:37 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAEFB16A404; Thu, 13 Apr 2006 19:37:37 +0000 (UTC) (envelope-from cracauer@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E17B843D55; Thu, 13 Apr 2006 19:37:32 +0000 (GMT) (envelope-from cracauer@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3DJbWSw059196; Thu, 13 Apr 2006 19:37:32 GMT (envelope-from cracauer@repoman.freebsd.org) Received: (from cracauer@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3DJbWPN059192; Thu, 13 Apr 2006 19:37:32 GMT (envelope-from cracauer) Message-Id: <200604131937.k3DJbWPN059192@repoman.freebsd.org> From: Martin Cracauer Date: Thu, 13 Apr 2006 19:37:32 +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/gnu/fs/ext2fs ext2_bitops.h 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: Thu, 13 Apr 2006 19:37:38 -0000 cracauer 2006-04-13 19:37:32 UTC FreeBSD src repository Modified files: sys/gnu/fs/ext2fs ext2_bitops.h Log: Repair ext2fs writes. Strong candidate for backport to 6.x. When allocating new blocks, the search for block group beginnings would fail with a segfault. There was a side-effect read access with an off-by-one errors. The results were not used in the error case so the code worked in the past. But now the FreeBSD kernel has tighter mappings and the word accessed is not mapped (for me). The Linux kernel has rewritten most of the allocation strategy by now. Also, the Linux kernel cleaned up the integration of these files and it look feasable to wrap the original Linux files in wrapper that provides their favorite arguments instead of dragging around our own code. Revision Changes Path 1.3 +1 -1 src/sys/gnu/fs/ext2fs/ext2_bitops.h