libxl: fix libxl__device_disk_from_xs_be to parse backend domid
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 6 Sep 2013 10:36:26 +0000 (12:36 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Sep 2013 12:13:31 +0000 (13:13 +0100)
commita508caf0ebc4f834bd44c1d607e5b7bfabe43e3d
treef9b540ea976c6a305096b7f259cf841f956f9f14
parent1438d36f96e90d1116bebc6b3013634ca21c49c8
libxl: fix libxl__device_disk_from_xs_be to parse backend domid

libxl__device_disk_from_xs_be was ignoring the backend domid, setting
it to 0 by default. Fix this by parsing the backend disk path in order
to fetch the backend domid.

This fixes the issue reported when trying to block-detach disks that
have it's backend on a driver domain.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-by: G.R. <firemeteor@users.sourceforge.net>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c