Received: from eggs.gnu.org ([208.118.235.92]:50322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYmdM-0004N1-0G for qemu-devel@nongnu.org; Sun, 27 May 2012 19:12:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYmdK-0003Gt-8u for qemu-devel@nongnu.org; Sun, 27 May 2012 19:12:23 -0400 Received: from ils-mail01.intellilink.co.jp ([61.115.36.70]:55353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYmdJ-0003Eo-VP for qemu-devel@nongnu.org; Sun, 27 May 2012 19:12:22 -0400 Message-ID: <4FC2B4CC.8090505@intellilink.co.jp> Date: Mon, 28 May 2012 08:12:12 +0900 From: "MATSUDA, Daiki" MIME-Version: 1.0 References: <4FBF1F36.1080303@intellilink.co.jp> In-Reply-To: <4FBF1F36.1080303@intellilink.co.jp> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [BUG] qemu-ga: failed to fsfreeze-thaw on RHEL 5.8 Guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Michael Roth I researched the source of the bug. qemu-ga calls guest_fsfreeze_build_mount_list from qemp_guest_fsreeze_thaw in qga/commands-posix.c. And it tries to read /etc/mtab (= MOUNTED) to get mounted filesystems. But when they are frozen, getmntent(fp) is not finished in the situation /etc/mtab in frozen filesystem. I suggest to read the list from not frozen filesystem file or on-memory data, e.g. /proc/mounts. Regards MATSUDA Daiki --- qga/commands-posix.c.orig 2012-05-28 08:10:47.842332018 +0900 +++ qga/commands-posix.c 2012-05-28 08:11:01.598340937 +0900 @@ -347,7 +347,7 @@ static int guest_fsfreeze_build_mount_li { struct mntent *ment; GuestFsfreezeMount *mount; - char const *mtab = MOUNTED; + char const *mtab = "/proc/mounts"; FILE *fp; fp = setmntent(mtab, "r"); > I encountered the serious bug on QEMU Guest Agent. > > environment > Guest OS : RHEL 5.8 / 5.7 (i686) > Guest Agent Version : qemu-1.1.0rc2 and rc3 > > I am trying to take snapshot via virsh snapshot-create-as command. And > to freeze guest's filesystem and take snapshot is succeed. But after > sending the thaw command to Guest, time error occurs on libvirt qemu > agent because of not catch Guest's answer. > In addition, its situation is worst because the Guest Filesystem is kept > as frozen. > > The problem does not occur on RHEL 6.2 Guest OS and in about qemu-1.0 it > does not occur. > > Regards > MATSUDA Daiki > > > >