On 06/01/2012 07:01 AM, Michal Privoznik wrote:
If users *-edit but make a mistake in XML all changes are
permanently lost. However, if virsh is not running within
a script we can ask user if he wants to re-edit the file
and correct the mistakes.
---
tools/console.c | 40 ++++++++++++++++++++++-------------
tools/console.h | 2 +
tools/virsh-edit.c | 38 ++++++++++++++++++++++++++++++----
tools/virsh.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 117 insertions(+), 20 deletions(-)
ACK.
--
Eric Blake eblake(a)redhat.com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org