Date: Thu, 18 Nov 2010 10:48:15 -0800 From: Marcel Moolenaar <xcllnt@mac.com> To: Greg Rivers <gcr+freebsd-geom@tharned.org> Cc: "Andrey V. Elsukov" <bu7cher@yandex.ru>, Marcel Moolenaar <marcel@freebsd.org>, freebsd-geom@freebsd.org Subject: Re: backup a partition table with gpart(8) Message-ID: <77B931B5-8A25-46AC-B14F-9D5F13A964EB@mac.com> In-Reply-To: <alpine.BSF.2.00.1011181137250.69496@roadkill.tharned.org> References: <4CE505B2.6010601@yandex.ru> <alpine.BSF.2.00.1011181137250.69496@roadkill.tharned.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77B931B5-8A25-46AC-B14F-9D5F13A964EB>