From owner-freebsd-current@FreeBSD.ORG Mon Mar 29 16:50:13 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E486D16A4CF for ; Mon, 29 Mar 2004 16:50:13 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA32243D1D for ; Mon, 29 Mar 2004 16:50:13 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (localhost [127.0.0.1]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i2U0oDEn053639; Mon, 29 Mar 2004 16:50:13 -0800 (PST) (envelope-from marcel@ns1.xcllnt.net) Received: (from marcel@localhost) by ns1.xcllnt.net (8.12.11/8.12.11/Submit) id i2U0oDP2053638; Mon, 29 Mar 2004 16:50:13 -0800 (PST) (envelope-from marcel) Date: Mon, 29 Mar 2004 16:50:13 -0800 From: Marcel Moolenaar To: Luigi Rizzo Message-ID: <20040330005013.GA53546@ns1.xcllnt.net> References: <20040329163926.A38109@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040329163926.A38109@xorpc.icir.org> User-Agent: Mutt/1.5.5.1i cc: current@freebsd.org Subject: Re: proposed bsdlabel patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 30 Mar 2004 00:50:14 -0000 On Mon, Mar 29, 2004 at 04:39:26PM -0800, Luigi Rizzo wrote: > if there are no strong objections, I'd like to commit > the following minor patch to bsdlabel (and associated bsdlabel.8 > changes) to implement a '-f' option which enables bsdlabel to > work on an image file too. As Julian mentioned, why not use stat(2) and DTRT without options? That also removes the gratuitous requirement that the filename has to be an absolute path. See also the implementation of gpt(8)... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net