Re: Request to rename 'destroy' to something milder.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/14/2011 04:31 AM, Kashyap Chamarthy wrote:
> (please cc me in response as I have not subscribed to this list)
> 
> Hi all,
> 
> A minor nitpick:
> 
> Every-time I suggest someone to do a force shut-down a guest using
> 'virsh destroy foo' , the very first question I get is -- does it
> _destroy_ my data?
> 
> This causes confusion to the inexperienced user and makes him/her
> suspect that the data/disk could be destroyed while running 'virsh
> destroy foo'
> 
> Maybe replacing it to a milder name like 'poweroff' or something might
> help?

I don't know how successful you'll be at this.  I recall asking at one
point in the past about adding 'nodedev-detach' as an alias for
'nodedev-dettach' to fix the spelling error (but I can't find it in the
mail archives, so it was probably a question I asked on IRC).  My
recollection of the response is:

1. any client that cares about maximum portability will use the older
spelling, not the newer one, so adding won't help portable scripts.

2. adding an alias means that the user writing a new script has to read
the documentation to see which of the two commands they want to use,
whereas offering only one spelling makes the decision easier.

3. while we may mark old spellings as deprecated, we have no plans to
remove them at any point (not even for a major number bump); backwards
compatibility demands that we keep everything we ever add, and adding
aliases adds that much more to maintain (although the maintenance burden
of an alias is lighter than the burden for a new API).

I'm personally in favor of the idea of adding better-named aliases, so
I'm not the person to convince.  For this idea to work, you'll need
buy-in from the Daniels (DV and danpb).  And we _do_ have at least one
example of an alias: 'virsh quit' and 'virsh exit' are aliases.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]