X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Fvirt.c;h=083ea65631131a8918487961632d935a9fa081e4;hb=1a35ca59088e572c11633e85524bb282cb436186;hp=13a6d127d586a9094a4418294c0d2c9c4e381fc8;hpb=7509c91a71c729b3223eef4cde10d70daca66c72;p=libguestfs.git diff --git a/fish/virt.c b/fish/virt.c index 13a6d12..083ea65 100644 --- a/fish/virt.c +++ b/fish/virt.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -43,6 +43,16 @@ add_libvirt_drives (const char *guest) optargs.bitmask |= GUESTFS_ADD_DOMAIN_READONLY_BITMASK; optargs.readonly = 1; } + if (live) { + optargs.bitmask |= GUESTFS_ADD_DOMAIN_LIVE_BITMASK; + optargs.live = 1; + } + + optargs.bitmask |= GUESTFS_ADD_DOMAIN_ALLOWUUID_BITMASK; + optargs.allowuuid = 1; + + optargs.bitmask |= GUESTFS_ADD_DOMAIN_READONLYDISK_BITMASK; + optargs.readonlydisk = "read"; return guestfs_add_domain_argv (g, guest, &optargs); }