From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=42485 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkDwk-0002Ce-Uj for qemu-devel@nongnu.org; Tue, 01 Feb 2011 05:58:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkDwi-00066M-Px for qemu-devel@nongnu.org; Tue, 01 Feb 2011 05:58:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkDwi-000660-J5 for qemu-devel@nongnu.org; Tue, 01 Feb 2011 05:58:52 -0500 From: Jes.Sorensen@redhat.com Date: Tue, 1 Feb 2011 11:58:46 +0100 Message-Id: <1296557928-30019-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] virtagent - fsfreeze support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com, agl@us.ibm.com From: Jes Sorensen Hi This is a first attempt to add fsfreeze support to virtagent. The idea is for the guest agent to walk the list of locally mounted file systems in the guest, and issuing an ioctl to freeze them. The host can then do a live snapshot of the guest, obtaining stable file systems. After the snapshot, the host then calls the thaw function in virtagent, which goes through the list of previously frozen file systems and unfreezes them. The list walking ignores remote file systems such as NFS and CIFS as well as all pseudo file systems. The guest agent code is in the first patch, and host agent code is in the second patch. For now there is only human monitor support, but it should be pretty straight forward to add QMP support as well. Patches are against the virtagent-dev git tree. Comments and suggestions welcome! Cheers, Jes Jes Sorensen (2): Add virtagent file system freeze/thaw Add monitor commands for fsfreeze support hmp-commands.hx | 48 +++++++++++ virtagent-common.h | 9 ++ virtagent-server.c | 196 +++++++++++++++++++++++++++++++++++++++++++ virtagent.c | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++ virtagent.h | 9 ++ 5 files changed, 497 insertions(+), 0 deletions(-) -- 1.7.3.5