From: Markus Armbruster <armbru@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, kraxel@redhat.com, hch@lst.de
Subject: [Qemu-devel] [PATCH v3 03/13] blockdev: Remove drive_get_serial()
Date: Thu, 1 Jul 2010 09:30:31 +0200 [thread overview]
Message-ID: <1277969441-22879-4-git-send-email-armbru@redhat.com> (raw)
In-Reply-To: <1277969441-22879-1-git-send-email-armbru@redhat.com>
Unused since commit 6ced55a5.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
blockdev.c | 12 ------------
blockdev.h | 1 -
2 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 3b8c606..e0495e5 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -78,18 +78,6 @@ int drive_get_max_bus(BlockInterfaceType type)
return max_bus;
}
-const char *drive_get_serial(BlockDriverState *bdrv)
-{
- DriveInfo *dinfo;
-
- QTAILQ_FOREACH(dinfo, &drives, next) {
- if (dinfo->bdrv == bdrv)
- return dinfo->serial;
- }
-
- return "\0";
-}
-
static void bdrv_format_print(void *opaque, const char *name)
{
fprintf(stderr, " %s", name);
diff --git a/blockdev.h b/blockdev.h
index 23ea576..a936785 100644
--- a/blockdev.h
+++ b/blockdev.h
@@ -40,7 +40,6 @@ extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
extern DriveInfo *drive_get_by_id(const char *id);
extern int drive_get_max_bus(BlockInterfaceType type);
extern void drive_uninit(DriveInfo *dinfo);
-extern const char *drive_get_serial(BlockDriverState *bdrv);
extern QemuOpts *drive_add(const char *file, const char *fmt, ...);
extern DriveInfo *drive_init(QemuOpts *arg, int default_to_scsi,
--
1.6.6.1
next prev parent reply other threads:[~2010-07-01 7:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-01 7:30 [Qemu-devel] [PATCH v3 00/13] More block-related fixes and cleanups Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 01/13] scsi: scsi_bus_legacy_handle_cmdline() can fail, fix callers Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 02/13] ide: Make it explicit that ide_create_drive() can't fail Markus Armbruster
2010-07-01 7:30 ` Markus Armbruster [this message]
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 04/13] blockdev: New drive_get_by_blockdev() Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 05/13] blockdev: Clean up automatic drive deletion Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 06/13] qdev: Decouple qdev_prop_drive from DriveInfo Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 07/13] blockdev: drive_get_by_id() is no longer used, remove Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 08/13] block: Catch attempt to attach multiple devices to a blockdev Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 09/13] savevm: Survive hot-unplug of snapshot device Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 10/13] block: Clean up bdrv_snapshots() Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 11/13] block: Fix virtual media change for if=none Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 12/13] ide: Make PIIX and ISA IDE init functions return the qdev Markus Armbruster
2010-07-01 7:30 ` [Qemu-devel] [PATCH v3 13/13] pc: Fix CMOS info for drives defined with -device Markus Armbruster
2010-07-01 8:48 ` [Qemu-devel] Re: [PATCH v3 00/13] More block-related fixes and cleanups 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=1277969441-22879-4-git-send-email-armbru@redhat.com \
--to=armbru@redhat.com \
--cc=hch@lst.de \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--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).