From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 4 19:03:45 2005 Return-Path: X-Original-To: freebsd-bugs@FreeBSD.org Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA4EB16A41F; Tue, 4 Oct 2005 19:03:45 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCFF943D45; Tue, 4 Oct 2005 19:03:44 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id j94J3XOP072436; Tue, 4 Oct 2005 22:03:33 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Tue, 4 Oct 2005 22:03:33 +0300 (EEST) From: Dmitry Pryanishnikov To: Tom Rhodes In-Reply-To: <200509071435.j87EZIkU098666@freefall.freebsd.org> Message-ID: <20051004214113.D63183@atlantis.atlantis.dp.ua> References: <200509071435.j87EZIkU098666@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/85503: [panic] wrong dirclust using msdosfs in RELENG_6 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 19:03:45 -0000 Hello! On Wed, 7 Sep 2005, Tom Rhodes wrote: > Responsible-Changed-By: trhodes > Responsible-Changed-When: Wed Sep 7 14:34:30 GMT 2005 > Responsible-Changed-Why: > Take and spearhead movement along branches. > Maybe, it time to propagate this fix to RELENG_6? BTW, I've written small regression test for this problem. It's available at ftp://external.atlantis.dp.ua/FreeBSD/PR/85503/regression/ Script a.sh constructs FS image from 2 compressed parts: part1.bin.bz2 (FAT + root dir + 1st test directory) and part2.bin.bz2 (2nd test directory). Just run this script, then mount_msdosfs resulting /dev/mdx device (R/O access is sufficient), and do 'ls -R' against the mountpoint - RELENG_6 system will currently crash at this point. P.S. It's difficult to generate this FS "on the fly". In order to do it I made the following: created HDD slice with size of 4100 Mb, zeroed it, made FAT32 FS with large (64k) cluster and single FAT copy to reduce an amount of auxiliary data: newfs_msdos -n 1 -c 128 /dev/adxsy then created file 1.bin of size (4G-64k): truncate -s 4294901760 1.bin on another large FAT32 slice, then loaded Windows-98 and made from the command line (X: - destination drive, Y: - drive with the large file 1.bin): MKDIR X:\1 COPY Y:1.BIN X:\1 MKDIR X:\2 COPY CON X:\2\2.BIN ^Z I've used another OS since FreeBSD's msdosfs selects initial cluster randomly, and mtools port is very buggy: I've 'mcopy''ed 3 * 1Gb files to fresh FS and got totally broken FS as a result. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE