Joao Martins b52779b30c util: add virDiskNameParse to handle disk and partition idx
Introduce a new helper function "virDiskNameParse" which extends
virDiskNameToIndex but handling both disk index and partition index.
Also rework virDiskNameToIndex to be based on virDiskNameParse.
A test is also added for this function testing both valid and
invalid disk names.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
2015-11-18 13:48:38 -07:00
..
2014-09-03 09:36:13 -06:00
2015-05-21 18:13:18 +02:00
2015-10-21 15:03:35 +02:00
2015-04-23 17:08:48 -04:00
2015-06-25 09:11:15 +02:00
2015-11-11 17:02:53 +01:00
2015-04-27 16:03:31 +02:00
2015-05-21 18:13:18 +02:00
2015-10-05 14:34:04 -04:00
2015-10-05 14:34:04 -04:00
2015-10-21 15:03:35 +02:00
2015-10-21 15:03:35 +02:00
2014-11-25 08:47:12 -07:00
2013-10-14 10:31:01 +01:00
2015-04-14 19:33:02 +02:00
2015-04-14 19:33:02 +02:00
2014-04-08 11:15:55 +01:00
2015-10-21 15:03:35 +02:00
2015-04-23 17:08:48 -04:00