From owner-freebsd-current@FreeBSD.ORG  Thu Apr  7 05:26:27 2005
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D7DAA16A4CE
	for <current@freebsd.org>; Thu,  7 Apr 2005 05:26:27 +0000 (GMT)
Received: from relay03.pair.com (relay03.pair.com [209.68.5.17])
	by mx1.FreeBSD.org (Postfix) with SMTP id 512D543D2F
	for <current@freebsd.org>; Thu,  7 Apr 2005 05:26:27 +0000 (GMT)
	(envelope-from silby@silby.com)
Received: (qmail 4930 invoked from network); 7 Apr 2005 05:26:26 -0000
Received: from unknown (HELO localhost) (unknown)
  by unknown with SMTP; 7 Apr 2005 05:26:26 -0000
X-pair-Authenticated: 209.68.2.70
Date: Thu, 7 Apr 2005 00:26:22 -0500 (CDT)
From: Mike Silbersack <silby@silby.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
In-Reply-To: <10310.1112693226@critter.freebsd.dk>
Message-ID: <20050407002507.X1003@odysseus.silby.com>
References: <10310.1112693226@critter.freebsd.dk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
cc: current@freebsd.org
cc: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: msdosfs or ehci corruption? 
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Apr 2005 05:26:28 -0000


On Tue, 5 Apr 2005, Poul-Henning Kamp wrote:

> I think we need somebody to do the binary search time travel to find
> out when this broke.
>
> -- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20

I didn't do that, but I came up with a test script that recreate the 
problem here:

#!/bin/sh
mdconfig -a -t swap -s 128m
bsdlabel -w md0 auto
newfs_msdos -F 16 -b 8192 /dev/md0a
mount_msdosfs /dev/md0 /mnt/thumb/
cp -R /usr/src/bin/ /mnt/thumb/

Run it and I see:

cp: /mnt/thumb/mkdir/Makefile: Is a directory
cp: /mnt/thumb/rmdir/Makefile: Not a directory
cp: /mnt/thumb/rmdir/rmdir.1: Not a directory
cp: /mnt/thumb/rmdir/rmdir.c: Not a directory
cp: /mnt/thumb/sh/bltin: Not a directory

And it's right, things are messed up already!

Mike "Silby" Silbersack