libxl: refactor disk addition to take a helper
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:29 +0000 (16:47 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Thu, 26 Jul 2012 15:47:29 +0000 (16:47 +0100)
commitd2b17a8cb3fc7d6fa32da0a516e05f9da5907794
treea36bbcc3098481a8d762af155e804859cfbb1c97
parentaf5ef322304bb7e1017c06c32211529f0ea33601
libxl: refactor disk addition to take a helper

Change libxl__device_disk_add to no longer take a xs transaction and
instead pass a helper for the local attach case that's used to get the
free vdev.

This function contains some non-functional changes due to an
indentation change.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_internal.h