From: Jes.Sorensen@redhat.com
To: qemu-devel@nongnu.org
Cc: lcapitulino@redhat.com, badari@us.ibm.com,
mdroth@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com,
agl@us.ibm.com
Subject: [Qemu-devel] [PATCH v3 0/2] virtagent - fsfreeze support
Date: Fri, 4 Feb 2011 11:57:35 +0100 [thread overview]
Message-ID: <1296817057-22455-1-git-send-email-Jes.Sorensen@redhat.com> (raw)
From: Jes Sorensen <Jes.Sorensen@redhat.com>
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!
v3 of the patch encapsulates the freeze states in a struct and fixes
some tab issues that I had missed. Both pointed out by Michael Roth.
v2 of the patch addresses the issues pointed out by Stefan and Michael.
Note I will be gone all of next week, so if I don't reply it's because
I am busy skiing :)
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 | 195 +++++++++++++++++++++++++++++++++++++++++++
virtagent.c | 235 ++++++++++++++++++++++++++++++++++++++++++++++++++++
virtagent.h | 9 ++
5 files changed, 496 insertions(+), 0 deletions(-)
--
1.7.3.5
next reply other threads:[~2011-02-04 12:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-04 10:57 Jes.Sorensen [this message]
2011-02-04 10:57 ` [Qemu-devel] [PATCH 1/2] Add virtagent file system freeze/thaw Jes.Sorensen
2011-02-04 10:57 ` [Qemu-devel] [PATCH 2/2] Add monitor commands for fsfreeze support Jes.Sorensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296817057-22455-1-git-send-email-Jes.Sorensen@redhat.com \
--to=jes.sorensen@redhat.com \
--cc=agl@us.ibm.com \
--cc=badari@us.ibm.com \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).