From owner-cvs-src@FreeBSD.ORG Wed Mar 24 00:34:23 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1FAE16A4CE; Wed, 24 Mar 2004 00:34:22 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBEBB43D2F; Wed, 24 Mar 2004 00:34:22 -0800 (PST) (envelope-from luigi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2O8YMGe089666; Wed, 24 Mar 2004 00:34:22 -0800 (PST) (envelope-from luigi@repoman.freebsd.org) Received: (from luigi@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2O8YMQ5089665; Wed, 24 Mar 2004 00:34:22 -0800 (PST) (envelope-from luigi) Message-Id: <200403240834.i2O8YMQ5089665@repoman.freebsd.org> From: Luigi Rizzo Date: Wed, 24 Mar 2004 00:34:22 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sbin/disklabel disklabel.8 disklabel.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 08:34:23 -0000 luigi 2004/03/24 00:34:22 PST FreeBSD src repository Modified files: (Branch: RELENG_4) sbin/disklabel disklabel.8 disklabel.c Log: Add a -f option to make disklabel to work on regular files (representing disk images). The change actually boils down to little more than providing the equivalent of a 'virgin' label for the file, all the remaining label manipulation being the same. This saves the need for going through vn/mdconfig (and root privs) just to label an image file. RELENG_4 only commit because disklabel is not in RELENG_5/CURRENT anymore, though I suspect a similar change could be applied to bsdlabel and friends. Revision Changes Path 1.15.2.23 +45 -6 src/sbin/disklabel/disklabel.8 1.28.2.16 +37 -2 src/sbin/disklabel/disklabel.c