From owner-freebsd-geom@FreeBSD.ORG Thu Feb 21 14:37:38 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99AD716A400; Thu, 21 Feb 2008 14:37:38 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id E9F9C13C448; Thu, 21 Feb 2008 14:37:37 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id B3CDC43D995; Thu, 21 Feb 2008 16:37:36 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qMIl64jZnwjr; Thu, 21 Feb 2008 16:37:36 +0200 (EET) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [88.81.251.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id 2A1C543D699; Thu, 21 Feb 2008 16:37:36 +0200 (EET) Message-ID: <47BD8CAF.9090908@icyb.net.ua> Date: Thu, 21 Feb 2008 16:37:35 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.9 (X11/20080123) MIME-Version: 1.0 To: Bruce Evans References: <47B81D07.7090208@icyb.net.ua> <47BD6F39.7080105@icyb.net.ua> <20080222005213.W5655@besplex.bde.org> In-Reply-To: <20080222005213.W5655@besplex.bde.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, freebsd-geom@freebsd.org Subject: Re: newfs_msdos and dvd-ram (fwsectors, fwheads) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2008 14:37:38 -0000 on 21/02/2008 16:27 Bruce Evans said the following: > On Thu, 21 Feb 2008, Andriy Gapon wrote: > >> on 17/02/2008 13:39 Andriy Gapon said the following: >>> Should newfs_msdos be able to work on "whole" cdX/acdX device ? >>> [ufs/ffs] newfs can do it. >>> But with newfs_msdos I had to run disklabel first and then I could >>> create a filesystem on cdXa, but I couldn't do it on the whole disk. >> It seems that the reason for this newfs_msdos behavior is in the >> following lines: >> if (ioctl(fd, DIOCGSECTORSIZE, &dlp.d_secsize) == -1) >> errx(1, "Cannot get sector size, %s", strerror(errno)); >> if (ioctl(fd, DIOCGFWSECTORS, &dlp.d_nsectors) == -1) >> errx(1, "Cannot get number of sectors, %s", strerror(errno)); >> if (ioctl(fd, DIOCGFWHEADS, &dlp.d_ntracks)== -1) >> errx(1, "Cannot get number of heads, %s", strerror(errno)); >> >> While a failure to get sector size is a serious situation indeed, number >> of sectors per track and number of heads are just relics of the past and >> are not applicable to all types of should-be-supported media. >> What's even more funny is that those values can be set via command line >> options and in that case values from ioctl are not used at all. > > Also, it needs the BIOS geometry, but has been broken to ask for, and Bruce, you lost me after this. I understand that you speak about a general case, but is there a "BIOS geometry" for DVD-RAM disk ? Would any information about physical structure of DVD-RAM disk prove useful for FAT on it ? I thought that all those CHS parameters were useful only in times when CHS was the disk access mode (and maybe for performance optimizations). I don't see how those parameters can be of any real use now. P.S. I must declare that I know zero about FAT. -- Andriy Gapon