From owner-freebsd-current@FreeBSD.ORG Fri Jul 4 21:06:27 2008 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 6D7F7106566C for ; Fri, 4 Jul 2008 21:06:27 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.76]) by mx1.freebsd.org (Postfix) with ESMTP id 405338FC15 for ; Fri, 4 Jul 2008 21:06:26 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtp019-bge351000.mac.com (asmtp019-bge351000 [10.150.69.82]) by smtpoutm.mac.com (Xserve/smtpout013/MantshX 4.0) with ESMTP id m64L6QMG015964; Fri, 4 Jul 2008 14:06:26 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.1.102] (209-128-86-226.BAYAREA.NET [209.128.86.226]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K3I00D7N2MPQ070@asmtp019.mac.com>; Fri, 04 Jul 2008 14:06:26 -0700 (PDT) Message-id: <80837A4B-A49A-44A4-AFBA-819DD1ED9DD4@mac.com> From: Marcel Moolenaar To: Andriy Gapon In-reply-to: <486E89E0.8010301@icyb.net.ua> Date: Fri, 04 Jul 2008 14:06:25 -0700 References: <889.1203600472@critter.freebsd.dk> <47CC55B0.4020607@icyb.net.ua> <486E89E0.8010301@icyb.net.ua> X-Mailer: Apple Mail (2.926) Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: newfs_msdos and dvd-ram (fwsectors, fwheads) 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, 04 Jul 2008 21:06:27 -0000 On Jul 4, 2008, at 1:36 PM, Andriy Gapon wrote: > on 03/03/2008 21:46 Andriy Gapon said the following: >> on 21/02/2008 15:27 Poul-Henning Kamp said the following: >>> In message <47BD6F39.7080105@icyb.net.ua>, Andriy Gapon writes: >>>> 2) fake those properties in newfs_msdof; >>>> benefit: this would help with other physical devices that can host >>>> FAT; >>> This is the way to do it, but it might make sense to make a library >>> routine do it, to get consistent behaviour. > > BTW, the same issue applies to md device too. > I.e. if you would like to create a FAT image in a file, newfs_msdos > won't let you. > >> I opened a PR for this approach in a simple form. >> http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/121182 >> What could be a good place to put thing for re-use/sharing? libutil? Note that this problem is already solved with GPart. As long as you have some partitioning scheme on the media, GPart will synthesize CHS parameters. FYI, -- Marcel Moolenaar xcllnt@mac.com