From owner-freebsd-current@FreeBSD.ORG Fri Mar 19 18:26:26 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D503B106564A for ; Fri, 19 Mar 2010 18:26:26 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6BEF18FC1C for ; Fri, 19 Mar 2010 18:26:26 +0000 (UTC) Received: by wwb18 with SMTP id 18so2119819wwb.13 for ; Fri, 19 Mar 2010 11:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=tlA3yWFrX0fVg8oFfhF+XE9P+/P+fDyKoGl04bUSmVQ=; b=YehuhDvEc0cz/M3+k+Jup7QSFpHRVWBKZj5BQAZ5bMRlK8KC34Qd3cMG88MN1FI5eo rIwHmKn0r9uRTifq3hODE4vWVkdxrghDR5pgo7e7ElZbHvByMpkvu/Dz51g5zVtRaaZe rPTHhdPd6swYPGkToMzl5qEavZOGdjr1q3OpA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=JsUoSa401awfP2xIWm2wiEZF2ieT4G9EyOscvsiYcZRABVdE9W/O5VFoA4nWs4HLhz lJMclO15l50J57FKQzoBojW1kGRYm5jGmDrp2pXxG0tcAqnfC6IxC8QPpketgYdjmuh0 MXHhsoJCWWJ/tlz66vIB+N1XfUsqny93pGB68= MIME-Version: 1.0 Received: by 10.216.161.196 with SMTP id w46mr1521162wek.105.1269023185153; Fri, 19 Mar 2010 11:26:25 -0700 (PDT) In-Reply-To: <20100319191133.46fe271c@r500.local> References: <3a142e751003190508x6a06868ene2e8fd9ddd977f66@mail.gmail.com> <3a142e751003191021p141af009m6acf7d160c890cbb@mail.gmail.com> <20100319191133.46fe271c@r500.local> From: Paul B Mahol Date: Fri, 19 Mar 2010 19:26:05 +0100 Message-ID: <3a142e751003191126j331e525fwb9e5573bbf6f7d58@mail.gmail.com> To: Fabian Keil Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: newfs_msdos and DVD-RAM X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2010 18:26:26 -0000 On Fri, Mar 19, 2010 at 7:11 PM, Fabian Keil wrote: > Paul B Mahol wrote: > >> FreeBSD 9.0 CURRENT panics when mounting file system created via >> newfs_msdos on DVD-RAM disc. >> Something to do about divide by zero. > > I recently had a similar problem with a 16GB iPod. I still haven't > managed to actually mount it, but the patch below at least works > around the panic. > > Does it work for you, too? Obviously it will fix panic, but will not allow to mount. Zero value should be handled already much before. It looks the real bug is in newfs_msdos. For some reason I did not managed to format DVD-RAM disc with FAT32 on WinXP, it trashed disc completely so I was forced to blank it with dvd+rw-tools.