Date: Thu, 18 Nov 2010 20:57:57 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: marcel@FreeBSD.ORG, Oliver Fromme <olli@lurza.secnetix.de>, freebsd-geom@FreeBSD.ORG Subject: Re: backup a partition table with gpart(8) Message-ID: <20101118195757.GA2416@garage.freebsd.pl> In-Reply-To: <4CE54B88.9070006@yandex.ru> References: <201011181132.oAIBWucC051624@lurza.secnetix.de> <4CE54B88.9070006@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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? > > > > (I'm not a huge fan of XML, but in this particular case > > it might be useful.) > > 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? > > > cat geom_class_cmd | geom <class> execute [arg0] > where geom_class_cmd is a list of commands for specific class. > This can get advantage for some geom classes, e.g.: > > > gpart dump ada0 | gpart execute ada1 > this command will make a copy of partition table ada0 to ada1. > > Currently to implement this geom(8) and gpart(8) should be significantly > changed particularly in the errors handling. > > 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/. -- Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkzlhUUACgkQForvXbEpPzT6hACfcqiE7wx484Z7x8uaQbQ5z5Ul jcoAn2Cnj7Rkv/1gJ0XjiPgLMM7mA7WD =pgN6 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101118195757.GA2416>
