From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=52713 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pke0N-0002qM-0F for qemu-devel@nongnu.org; Wed, 02 Feb 2011 09:48:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkYIc-0007Ir-42 for qemu-devel@nongnu.org; Wed, 02 Feb 2011 03:42:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkYIb-0007HR-Rl for qemu-devel@nongnu.org; Wed, 02 Feb 2011 03:42:50 -0500 From: Jes.Sorensen@redhat.com Date: Wed, 2 Feb 2011 09:42:38 +0100 Message-Id: <1296636160-991-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH v2 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: lcapitulino@redhat.com, mdroth@linux.vnet.ibm.com, stefanha@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. Comments and suggestions welcome! v2 of the patch addresses the issues pointed out by Stefan and Michael. 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 | 190 ++++++++++++++++++++++++++++++++++++++++++ virtagent.c | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++ virtagent.h | 9 ++ 5 files changed, 491 insertions(+), 0 deletions(-) -- 1.7.3.5