WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Enumeration of PBDs

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Enumeration of PBDs
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Wed, 2 May 2007 14:59:31 -0400
Delivery-date: Wed, 02 May 2007 11:58:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx

I was looking for a function that would allow to enumerate the physical block devices (PBDs) on a host.  Since I could not find a function and the PBD class does not seem to cover it, I was wondering whether it might be a generally useful one - at least I would find it practical to have for multiple-choice reasons when building a VM. One parameter could be a regular _expression_ that filters all devices found in '/dev' and subdirs.

device_list = host.enumerate_devices(regex)

   Stefan
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] Enumeration of PBDs, Stefan Berger <=