Markus Armbruster f5bebbbb28 util: Emancipate id_wellformed() from QemuOpts
IDs have long spread beyond QemuOpts: not everything with an ID
necessarily goes through QemuOpts.  Commit 9aebf3b is about such a
case: block layer names are meant to be well-formed IDs, but some of
them don't go through QemuOpts, and thus weren't checked.  The commit
fixed that the straightforward way: rename the internal QemuOpts
helper id_wellformed() to qemu_opts_id_wellformed() and give it
external linkage.

Instead of using it directly in block.c, the commit adds wrapper
bdrv_is_valid_name(), probably to hide the connection to QemuOpts.

Go one logical step further: emancipate IDs from QemuOpts.  Rename the
function back to id_wellformed(), and put it in another file.  While
there, clean up its value to bool.  Peel off the bdrv_is_valid_name()
wrapper.

[Replaced stray return 0 with return false to match bool returns used
elsewhere in id_wellformed().
--Stefan]

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-10-03 10:30:33 +01:00
..
2013-11-21 08:01:06 -08:00
2014-09-30 13:30:51 +02:00
2013-02-16 11:11:34 +00:00
2014-05-30 13:00:28 -06:00
2014-02-20 13:14:18 +01:00
2014-06-19 18:44:19 +03:00
2014-02-01 13:46:06 +04:00
2014-03-13 14:42:21 +01:00
2014-06-23 11:12:28 -04:00
2013-10-17 17:30:55 +02:00
2013-10-17 17:30:55 +02:00
2014-08-06 17:53:07 +02:00