From owner-cvs-all@FreeBSD.ORG Thu Apr 24 11:21:25 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EC1D37B407 for ; Thu, 24 Apr 2003 11:21:25 -0700 (PDT) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4380D43F3F for ; Thu, 24 Apr 2003 11:21:23 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 20536 invoked from network); 24 Apr 2003 18:21:28 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 24 Apr 2003 18:21:28 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h3OILKOv000749; Thu, 24 Apr 2003 14:21:20 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200304241819.h3OIJJpG018195@repoman.freebsd.org> Date: Thu, 24 Apr 2003 14:21:24 -0400 (EDT) From: John Baldwin To: John Baldwin cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: RE: cvs commit: src/sys/fs/msdosfs msdosfs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 18:21:26 -0000 On 24-Apr-2003 John Baldwin wrote: > jhb 2003/04/24 11:19:19 PDT > > FreeBSD src repository > > Modified files: > sys/fs/msdosfs msdosfs_vfsops.c > Log: > Fail to mount a device if the bytes per sector in the BPB is less than > DEV_BSIZE or if the number of FAT sectors is zero. Windows formatted iPod's have a fake DOS BPB at the start of their disk. If you tried to mount it as a msdos filesystem before this change, the kernel would panic. Now you get EINVAL. If you stick GEOM_APPLE in your kernel, then the apple label at the start of the disk is recognized, and you can mount /dev/da0s2 as a msdos filesystem. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/