From: Richard W.M. Jones Date: Wed, 26 Oct 2011 18:30:23 +0000 (+0100) Subject: fish and other tools: -d option uses readonlydisk="read" (RHBZ#747290). X-Git-Tag: 1.13.26~2 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=bf7f3170eadb8be5a74a7698a6f7b1dda7a27541;hp=b893294dcc948d4b41318a400fc4235a190d306b fish and other tools: -d option uses readonlydisk="read" (RHBZ#747290). Tools like virt-edit would not be able to edit disks marked as in the libvirt XML. It's not clear if this is a bug or a feature. --- diff --git a/fish/virt.c b/fish/virt.c index 486f098..8e8720f 100644 --- a/fish/virt.c +++ b/fish/virt.c @@ -51,5 +51,8 @@ add_libvirt_drives (const char *guest) 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); }