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
[email protected]                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Attachment: pgpSWzBPWWeJm.pgp
Description: PGP signature

Reply via email to