From owner-freebsd-geom@FreeBSD.ORG Thu Nov 18 11:33:14 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 455AF1065673; Thu, 18 Nov 2010 11:33:14 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id B9F518FC14; Thu, 18 Nov 2010 11:33:13 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id oAIBWu5d051625; Thu, 18 Nov 2010 12:33:11 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id oAIBWucC051624; Thu, 18 Nov 2010 12:32:56 +0100 (CET) (envelope-from olli) Date: Thu, 18 Nov 2010 12:32:56 +0100 (CET) Message-Id: <201011181132.oAIBWucC051624@lurza.secnetix.de> From: Oliver Fromme To: freebsd-geom@FreeBSD.ORG, bu7cher@yandex.ru, marcel@FreeBSD.ORG In-Reply-To: <4CE505B2.6010601@yandex.ru> X-Newsgroups: list.freebsd-geom User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Thu, 18 Nov 2010 12:33:11 +0100 (CET) Cc: Subject: Re: backup a partition table with gpart(8) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-geom@FreeBSD.ORG, bu7cher@yandex.ru, marcel@FreeBSD.ORG 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 11:33:14 -0000 Andrey V. Elsukov wrote: > I'm thinking about such feature like ability to dump partition > table into file from which it can be recovered in the future. > Also it can be used to copy partition table to another device. > > At the moment i think that just print out a list of commands that > should be done to create the same table it is the easiest way. > [...] > Any comments and ideas are welcome. How about an option to dump the table in XML format, and another option that creates a table from an XML structure? (I'm not a huge fan of XML, but in this particular case it might be useful.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "People still program in C. People keep writing shell scripts. *Most* people don't realize the shortcomings of the tools they are using because they a) don't reflect on their workflows and they are b) too lazy to check out alternatives to realize there is help." -- Simon 'corecode' Schubert