mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
fish and other tools: -d option uses readonlydisk="read" (RHBZ#747290).
Tools like virt-edit would not be able to edit disks marked as <readonly/> in the libvirt XML. It's not clear if this is a bug or a feature.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user