hotplug/NetBSD: check type of file to attach from params
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 31 Aug 2012 09:42:07 +0000 (10:42 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Fri, 31 Aug 2012 09:42:07 +0000 (10:42 +0100)
commitc6c1fd29e93566c2ddf6e2e0c040444b82918d28
tree2be7807956de5d637f30ba71ebdd90046412edc3
parentf38549dbe470cdf7baa65d81f29668ad15f97a6e
hotplug/NetBSD: check type of file to attach from params

xend used to set the xenbus backend entry "type" to either "phy" or
"file", but now libxl sets it to "phy" for both file and block device.
We have to manually check for the type of the "param" field in order
to detect if we are trying to attach a file or a block device.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
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/hotplug/NetBSD/block