From owner-freebsd-current@FreeBSD.ORG Thu Feb 21 22:33:40 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 CF14916A403; Thu, 21 Feb 2008 22:33:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 6EA8F13C45E; Thu, 21 Feb 2008 22:33:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 2E2FC1710A; Thu, 21 Feb 2008 22:33:39 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m1LDRqGW000890; Thu, 21 Feb 2008 13:27:52 GMT (envelope-from phk@critter.freebsd.dk) To: Andriy Gapon From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 21 Feb 2008 14:31:53 +0200." <47BD6F39.7080105@icyb.net.ua> Date: Thu, 21 Feb 2008 13:27:52 +0000 Message-ID: <889.1203600472@critter.freebsd.dk> Sender: phk@critter.freebsd.dk 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-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: Thu, 21 Feb 2008 22:33:40 -0000 In message <47BD6F39.7080105@icyb.net.ua>, Andriy Gapon writes: >on 17/02/2008 13:39 Andriy Gapon said the following: >I see two approaches: >1) fake those properties in device drivers, primarily cd(4) and acd(4); > benefit: this can help other utilities besides newfs_msdos No. The geom attributes are provided if they are available only. It is the responsibility of the application code to decide and handle their absence. >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. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.