[libvirt] where is "virsh pool-stop"?

Hi folks, Suggestion: "virsh pool-destroy" sounds highly destructive. There is a "pool-start" command, so how about "pool-stop"? Similar commands could be introduced for the other *-start commands. This would make using virsh _much_ easier. In Unix world "start" and "stop" belong together, "start" and "destroy" don't. Regards Harri

On Thu, Jul 15, 2010 at 11:44:33AM +0200, Harald Dunkel wrote:
Hi folks,
Suggestion:
"virsh pool-destroy" sounds highly destructive. There is a "pool-start" command, so how about "pool-stop"? Similar commands could be introduced for the other *-start commands.
For pools especially destroy has a bad sound to it.
This would make using virsh _much_ easier.
In Unix world "start" and "stop" belong together, "start" and "destroy" don't.
Generally, I agree, start implies stop, but there is also the case of start-shutdown-destroy. I believe the reason for the command names is that one does a 'start' on a VM, but then either does a graceful 'shutdown' or a un-graceful 'destroy'. There is no single 'stop' in that case. None of that takes away from your original point, however, that pool-destroy is not the destructive operation that it sounds like, and I have also done virsh foo-stop many times without thinking about it. I wouldn't object to aliasing pool-stop to pool-destroy, but I'm curious to know what others on the list think. Dave
Regards
Harri
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On 07/16/10 - 04:56:43AM, Justin Clift wrote:
On 07/16/2010 04:48 AM, Dave Allan wrote: <snip>
I wouldn't object to aliasing pool-stop to pool-destroy, but I'm curious to know what others on the list think.
Full agreement from me. :)
I also think it is a good idea in general. -- Chris Lalancette

Same here, I'm doing bindings for NodeJS and I used stop instead of destroy and also I used start instead create. On Thu, Jul 15, 2010 at 5:44 AM, Harald Dunkel <harald.dunkel@aixigo.de>wrote:
Hi folks,
Suggestion:
"virsh pool-destroy" sounds highly destructive. There is a "pool-start" command, so how about "pool-stop"? Similar commands could be introduced for the other *-start commands.
This would make using virsh _much_ easier.
In Unix world "start" and "stop" belong together, "start" and "destroy" don't.
Regards
Harri
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (5)
-
Camilo Aguilar
-
Chris Lalancette
-
Dave Allan
-
Harald Dunkel
-
Justin Clift