[Libvir] [PATCH] add global --readonly flag to virsh
Richard W.M. Jones
rjones at redhat.com
Mon Mar 5 17:22:28 UTC 2007
The current vshInit function in virsh tries some dodgy heuristics to see
if it should connect readonly or read/write to the hypervisor.
Unfortunately these heuristics fail, eg. when you have a root-owned
system-wide qemud, and a user trying to run virsh as non-root.
This patch removes the heuristics and replaces them with a simple -r |
--readonly flag on the command line. If omitted, we try to connect
read/write, otherwise we try to connect readonly.
Note that this doesn't affect the "connect" command in the shell, which
still has its own --readonly flag that is completely separate from this
new global flag.
Rich.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-virsh-readonly.patch
Type: text/x-patch
Size: 2641 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070305/d3a45da2/attachment-0001.bin>
More information about the libvir-list
mailing list