From: Max Reitz <mreitz@redhat.com>
To: qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Alberto Garcia <berto@igalia.com>,
qemu-devel@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: [Qemu-devel] [PATCH 5/5] block: Drop bdrv_find_whitelisted_format()
Date: Wed, 26 Aug 2015 19:47:52 +0200 [thread overview]
Message-ID: <1440611272-4571-6-git-send-email-mreitz@redhat.com> (raw)
In-Reply-To: <1440611272-4571-1-git-send-email-mreitz@redhat.com>
It is unused by now, so we can drop it.
Signed-off-by: Max Reitz <mreitz@redhat.com>
---
block.c | 7 -------
include/block/block.h | 2 --
2 files changed, 9 deletions(-)
diff --git a/block.c b/block.c
index 434f43c..461eb94 100644
--- a/block.c
+++ b/block.c
@@ -313,13 +313,6 @@ static int bdrv_is_whitelisted(BlockDriver *drv, bool read_only)
return 0;
}
-BlockDriver *bdrv_find_whitelisted_format(const char *format_name,
- bool read_only)
-{
- BlockDriver *drv = bdrv_find_format(format_name);
- return drv && bdrv_is_whitelisted(drv, read_only) ? drv : NULL;
-}
-
typedef struct CreateCo {
BlockDriver *drv;
char *filename;
diff --git a/include/block/block.h b/include/block/block.h
index 67556c4..b075f67 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -193,8 +193,6 @@ BlockDriver *bdrv_find_protocol(const char *filename,
bool allow_protocol_prefix,
Error **errp);
BlockDriver *bdrv_find_format(const char *format_name);
-BlockDriver *bdrv_find_whitelisted_format(const char *format_name,
- bool readonly);
int bdrv_create(BlockDriver *drv, const char* filename,
QemuOpts *opts, Error **errp);
int bdrv_create_file(const char *filename, QemuOpts *opts, Error **errp);
--
2.4.6
next prev parent reply other threads:[~2015-08-26 17:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-26 17:47 [Qemu-devel] [PATCH 0/5] block: Drop drv parameter from bdrv_open() Max Reitz
2015-08-26 17:47 ` [Qemu-devel] [PATCH 1/5] block: Always pass NULL as drv for bdrv_open() Max Reitz
2015-08-27 6:54 ` Alberto Garcia
2015-08-26 17:47 ` [Qemu-devel] [PATCH 2/5] block: Drop drv parameter from bdrv_open() Max Reitz
2015-08-27 6:55 ` Alberto Garcia
2015-08-26 17:47 ` [Qemu-devel] [PATCH 3/5] block: Drop drv parameter from bdrv_open_inherit() Max Reitz
2015-08-27 6:55 ` Alberto Garcia
2015-08-26 17:47 ` [Qemu-devel] [PATCH 4/5] block: Drop drv parameter from bdrv_fill_options() Max Reitz
2015-08-27 6:55 ` Alberto Garcia
2015-08-26 17:47 ` Max Reitz [this message]
2015-08-27 6:56 ` [Qemu-devel] [PATCH 5/5] block: Drop bdrv_find_whitelisted_format() Alberto Garcia
2015-09-07 10:25 ` [Qemu-devel] [PATCH 0/5] block: Drop drv parameter from bdrv_open() Kevin Wolf
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=1440611272-4571-6-git-send-email-mreitz@redhat.com \
--to=mreitz@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).