[PATCH] Recognize magic for saved qemu/kvm images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Last one in the batch of forgotten patches. Sorry I haven't sent these
sooner. :(

virt-manager supports saving  memory images from libvirtd managed
domains, but it doesn't restore them. This patch fixes that by teaching
virt-manager to recognize libvirtd's magic string.

-- 
Soren Hansen               | 
Virtualisation specialist  | Ubuntu Server Team
Canonical Ltd.             | http://www.ubuntu.com/
=== modified file 'src/virtManager/manager.py'
Index: virt-manager-0.5.3/src/virtManager/manager.py
===================================================================
--- virt-manager-0.5.3.orig/src/virtManager/manager.py	2008-03-12 10:18:38.472312907 +0100
+++ virt-manager-0.5.3/src/virtManager/manager.py	2008-03-12 10:18:58.224332725 +0100
@@ -335,7 +335,7 @@
         try:
             f = open(file, "r")
             magic = f.read(16)
-            if magic != "LinuxGuestRecord":
+            if magic != "LinuxGuestRecord" and magic != "LibvirtQemudSave":
                 return False
             return True
         except:

Attachment: signature.asc
Description: Digital signature

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux