From owner-freebsd-geom@FreeBSD.ORG Thu Nov 18 18:48:33 2010 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 658321065695; Thu, 18 Nov 2010 18:48:33 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id 4CE3A8FC14; Thu, 18 Nov 2010 18:48:33 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 64bit)) with ESMTPSA id <0LC30023RG8FGL20@asmtp029.mac.com>; Thu, 18 Nov 2010 10:48:16 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1010190000 definitions=main-1011180153 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2010-11-18_08:2010-11-18, 2010-11-18, 1970-01-01 signatures=0 From: Marcel Moolenaar In-reply-to: Date: Thu, 18 Nov 2010 10:48:15 -0800 Message-id: <77B931B5-8A25-46AC-B14F-9D5F13A964EB@mac.com> References: <4CE505B2.6010601@yandex.ru> To: Greg Rivers X-Mailer: Apple Mail (2.1082) Cc: "Andrey V. Elsukov" , Marcel Moolenaar , freebsd-geom@freebsd.org Subject: Re: backup a partition table with gpart(8) 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, 18 Nov 2010 18:48:33 -0000 On Nov 18, 2010, at 10:00 AM, Greg Rivers wrote: > > So instead of a special dump command or complicated XML formatting, just make "gpart show" output suitable for input (it's probably already close), and add the verb to read that input ("gpart read" or "gpart apply" or such). Add the ability to handle wildcards and run the editor, and gpart could be as friendly to use as bsdlabel is. BTW: I don't think bsdlabel is friendly to use at all, so I certainly hope not that gpart will become as friendly as bsdlabel. It would be a regression :-) I would not try and mix functionality in a single command. Output suitable for humans is ipso facto unsuitable for machines (and vice versa). I'm sure there are exceptions, but I do not think gpart is one of them. It's better to introduce gpart backup and gpart restore and have them optimized for the purpose than it is to try and solve two independent problems with gpart show, which already has its own problems of providing user-friendly output. -- Marcel Moolenaar xcllnt@mac.com