From owner-freebsd-geom@FreeBSD.ORG Thu Nov 18 19:58:51 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 8D998106564A for ; Thu, 18 Nov 2010 19:58:51 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 26F838FC0C for ; Thu, 18 Nov 2010 19:58:49 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C397C45CAC; Thu, 18 Nov 2010 20:58:46 +0100 (CET) Received: from localhost (chello089073192049.chello.pl [89.73.192.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 11EDC45C89; Thu, 18 Nov 2010 20:58:40 +0100 (CET) Date: Thu, 18 Nov 2010 20:57:57 +0100 From: Pawel Jakub Dawidek To: "Andrey V. Elsukov" Message-ID: <20101118195757.GA2416@garage.freebsd.pl> References: <201011181132.oAIBWucC051624@lurza.secnetix.de> <4CE54B88.9070006@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <4CE54B88.9070006@yandex.ru> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: marcel@FreeBSD.ORG, Oliver Fromme , 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 19:58:51 -0000 --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 18, 2010 at 06:51:36PM +0300, Andrey V. Elsukov wrote: > On 18.11.2010 14:32, Oliver Fromme wrote: > > How about an option to dump the table in XML format, and > > another option that creates a table from an XML structure? > >=20 > > (I'm not a huge fan of XML, but in this particular case > > it might be useful.) >=20 > I do not think it is very useful, nor in implementation, nor > in usability. What about add a new standard command to geom(8) > to execute batch of commands? >=20 > > cat geom_class_cmd | geom execute [arg0] > where geom_class_cmd is a list of commands for specific class. > This can get advantage for some geom classes, e.g.: >=20 > > gpart dump ada0 | gpart execute ada1 > this command will make a copy of partition table ada0 to ada1. >=20 > Currently to implement this geom(8) and gpart(8) should be significantly > changed particularly in the errors handling. >=20 > So my question is to Marcel and Pawel - Do you have something > against these changes? Or maybe you can suggest something else? I'd prefer simple text dump of gpart configuration, but not as commands. I find myself often configure systems with more than one disk and would really like to just do the following: # gpart backup ada0 | gpart restore ada1 ada2 ada3 This also means we either not dump labels or not restore them or we have additional option which will/won't restore them. BTW. I noticed that configuring label with 'gpart modify' for existing partition doesn't trigger taste, so new label doesn't appear in /dev/gpt/. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkzlhUUACgkQForvXbEpPzT6hACfcqiE7wx484Z7x8uaQbQ5z5Ul jcoAn2Cnj7Rkv/1gJ0XjiPgLMM7mA7WD =pgN6 -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--