From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>,
qemu-block@nongnu.org, Juan Quintela <quintela@redhat.com>,
qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>,
Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>,
Paolo Bonzini <pbonzini@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [PATCH v2 2/3] migration: Make save_snapshot() return bool, not 0/-1
Date: Wed, 21 Oct 2020 12:04:55 +0200 [thread overview]
Message-ID: <a9def59c-4d74-4488-8115-61d2f9ee4f94@redhat.com> (raw)
In-Reply-To: <20201021095630.GG412988@redhat.com>
On 10/21/20 11:56 AM, Daniel P. Berrangé wrote:
> On Mon, Oct 12, 2020 at 02:27:42PM +0200, Philippe Mathieu-Daudé wrote:
>> Just for consistency, following the example documented since
>> commit e3fe3988d7 ("error: Document Error API usage rules"),
>> return a boolean value indicating an error is set or not.
>>
>> Acked-by: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>> include/migration/snapshot.h | 9 ++++++++-
>> migration/savevm.c | 16 ++++++++--------
>> replay/replay-debugging.c | 2 +-
>> replay/replay-snapshot.c | 2 +-
>> 4 files changed, 18 insertions(+), 11 deletions(-)
>>
>> diff --git a/include/migration/snapshot.h b/include/migration/snapshot.h
>> index c85b6ec75b7..a40c34307b5 100644
>> --- a/include/migration/snapshot.h
>> +++ b/include/migration/snapshot.h
>> @@ -15,7 +15,14 @@
>> #ifndef QEMU_MIGRATION_SNAPSHOT_H
>> #define QEMU_MIGRATION_SNAPSHOT_H
>>
>> -int save_snapshot(const char *name, Error **errp);
>> +/**
>> + * save_snapshot: Save a snapshot.
>> + * @name: path to snapshot
>
> This isn't a path, it is a name.
>
> I'll apply this change:
>
> - * save_snapshot: Save a snapshot.
> - * @name: path to snapshot
> + * save_snapshot: Save an internal snapshot.
> + * @name: name of internal snapshot
Thanks!
next prev parent reply other threads:[~2020-10-21 10:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-12 12:27 [PATCH v2 0/3] migration: Make save/load_snapshot() return boolean Philippe Mathieu-Daudé
2020-10-12 12:27 ` [PATCH v2 1/3] block: push error reporting into bdrv_all_*_snapshot functions Philippe Mathieu-Daudé
2020-10-12 15:21 ` Max Reitz
2020-10-12 12:27 ` [PATCH v2 2/3] migration: Make save_snapshot() return bool, not 0/-1 Philippe Mathieu-Daudé
2020-10-21 9:56 ` Daniel P. Berrangé
2020-10-21 10:04 ` Philippe Mathieu-Daudé [this message]
2020-10-12 12:27 ` [PATCH v2 3/3] migration: stop returning errno from load_snapshot() Philippe Mathieu-Daudé
2020-10-21 10:12 ` Daniel P. Berrangé
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=a9def59c-4d74-4488-8115-61d2f9ee4f94@redhat.com \
--to=philmd@redhat.com \
--cc=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=pavel.dovgaluk@ispras.ru \
--cc=pavel.dovgalyuk@ispras.ru \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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).