Jeff Cody e855e4fb7b block: Ignore duplicate or NULL format_name in bdrv_iterate_format
Some block drivers have multiple BlockDriver instances with identical
format_name fields (e.g. gluster, nbd).

Both qemu-img and qemu will use bdrv_iterate_format() to list the
supported formats when a help option is invoked.  As protocols and
formats may register multiple drivers, redundant listings of formats
occur (e.g., "Supported formats: ... gluster gluster gluster gluster ...
").

Since the list of driver formats will be small, this performs a simple
linear search on format_name, and ignores any duplicates.

The end result change is that the iterator will no longer receive
duplicate string names, nor will it receive NULL pointers.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-04-29 11:58:07 +02:00
2014-04-28 17:36:30 +02:00
2014-04-23 10:28:14 +02:00
2014-04-28 13:43:17 +01:00
2014-04-28 13:43:17 +01:00
2014-04-25 12:59:57 +02:00
2014-04-28 13:43:17 +01:00
2014-04-28 08:55:31 +04:00
2014-04-25 09:19:58 -04:00
2014-04-24 15:24:52 +01:00
2014-04-28 13:43:17 +01:00
2014-04-25 09:19:58 -04:00
2014-04-28 13:43:17 +01:00
2014-04-28 08:55:31 +04:00
2014-03-12 17:26:32 +01:00
2014-04-27 13:04:18 +04:00
2014-03-19 19:47:15 +01:00
2014-03-13 14:42:24 +01:00
2014-03-27 15:19:00 +05:30
2014-02-21 21:02:23 +01:00
2014-03-13 14:34:16 +00:00
2014-02-25 14:30:28 +01:00
2014-04-18 10:33:36 +04:00
2014-03-27 15:19:00 +05:30
2014-04-22 12:00:20 +02:00
2014-04-22 12:00:20 +02:00
2014-04-28 13:43:17 +01:00
2014-03-05 03:06:24 +01:00
2014-02-17 11:57:23 -05:00
2014-04-17 20:39:32 +01:00
2014-03-27 15:19:00 +05:30

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%