From owner-cvs-src@FreeBSD.ORG Sat Apr 16 01:49:51 2005 Return-Path: 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 4253316A4CE; Sat, 16 Apr 2005 01:49:51 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 154B843D2D; Sat, 16 Apr 2005 01:49:51 +0000 (GMT) (envelope-from njl@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 j3G1nocx021371; Sat, 16 Apr 2005 01:49:50 GMT (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3G1no8B021370; Sat, 16 Apr 2005 01:49:50 GMT (envelope-from njl) Message-Id: <200504160149.j3G1no8B021370@repoman.freebsd.org> From: Nate Lawson Date: Sat, 16 Apr 2005 01:49:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/msdosfs msdosfs_conv.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 16 Apr 2005 01:49:51 -0000 njl 2005-04-16 01:49:50 UTC FreeBSD src repository Modified files: sys/fs/msdosfs msdosfs_conv.c Log: Fix mbnambuf support for multi-byte characters. If a substring is larger than WIN_CHARS bytes, we shift the suffix (previous substrings) upwards by the amount this substring exceeds its WIN_CHARS slot. Profiling shows this change is indistinguishable from the previous code at 95% confidence. This bug would result in attempts to access or create files or directories with multi-byte characters returning an error but no data loss. Reported and tested by: avatar MFC after: 3 days Revision Changes Path 1.44 +29 -19 src/sys/fs/msdosfs/msdosfs_conv.c