Skip to contentSkip to conversation

rename set-vcpus -> vcpu-set

RFC Sean Dague 3 participants 4 messages Nov 15, 2005

lore
Share & tools
lore

Sean Dague

author
#0 lore raw

This one xm command violates the previous obj-verb convention of commands, and it would be good to change that prior to a 3.0 release. It was really noticable to me when doing the xm.1 documentation.

I propose vcpu-set as there are other vcpu- commands, but other suggestions are welcomed.

Please comment ASAP. I'll send a patch tomorrow if there has been no discussion, or if we've all come to some conclusion.

-Sean

Signature · 9 lines
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 6 lines · Sean Dague

This one xm command violates the previous obj-verb convention of commands, and it would be good to change that prior to a 3.0 release. It was really noticable to me when doing the xm.1 documentation.

I propose vcpu-set as there are other vcpu- commands, but other suggestions are welcomed.

I named this set-vcpus because to me, vcpu-set means to set some property of a VCPU, whereas this command sets a property of a domain (the number of VCPUs it has).

However, since everyone seems to disagree with me, let's change it to vcpu-set!

Feel free to submit a patch. Your other ones are going in right now.

Ewan.

#2 lore raw
Quoted 7 lines · Ewan Mellor
Quoted 2 lines · Sean Dague

I propose vcpu-set as there are other vcpu- commands, but other suggestions are welcomed.

I named this set-vcpus because to me, vcpu-set means to set some property of a VCPU, whereas this command sets a property of a domain (the number of VCPUs it has).

domain-set-vcpus ?!? /ducks

author
#3 lore raw
In reply to Ewan Mellor
Quoted 6 lines · Ewan Mellor
Quoted 4 lines · Sean Dague

This one xm command violates the previous obj-verb convention of commands, and it would be good to change that prior to a 3.0 release. It was really noticable to me when doing the xm.1 documentation.

Quoted 6 lines
Quoted 2 lines

I propose vcpu-set as there are other vcpu- commands, but other suggestions are welcomed.

I named this set-vcpus because to me, vcpu-set means to set some property of a VCPU, whereas this command sets a property of a domain (the number of VCPUs it has).

Most of the commands are obj-verb with domain/host implied. (i.e. mem-set, block-attach, etc.). Just going with existing convention. :)

-Sean

Signature · 9 lines
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel