This patch is meant for discussion of the issues involved.
I'd like to change the default for guestfish -a / -m command line
options to open read-only. This creates less opportunity to corrupt
disk images by opening them for write while another VM might be using
them.
With this patch you can specify:
guestfish --rw ...
which in itself does nothing since the default is currently read/write
anyway.
But it allows us in future to add a configuration file that controls
the default ("default" being the case where you use guestfish or
guestmount with neither --ro nor --rw options). We can then change
the configuration file in 1.8 to make read-only the default.
By backporting this patch to the other stable branches we can start
introducing scripts that use 'guestfish --rw' in readiness for a
future change to the default.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://et.redhat.com/~rjones/libguestfs/
See what it can do:
http://et.redhat.com/~rjones/libguestfs/recipes.html