From: Ian Jackson Subject: Re: [PATCH 2 of 3] blktap3/libxl: Check whether blktap3 is available Date: Tue, 12 Feb 2013 17:57:52 +0000 Message-ID: <20762.33440.178465.605902@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Thanos Makatos Cc: xen-devel@lists.xensource.com, andrei.lifchits@citrix.com List-Id: xen-devel@lists.xenproject.org Thanos Makatos writes ("[Xen-devel] [PATCH 2 of 3] blktap3/libxl: Check whether blktap3 is available"): > This patch implements function libxl__blktap3_enabled, the equivalent of the > existing libxl__blktap_enabled for blktap2. The checks performed are rather > simple and should be extended. ... > +/* FIXME get the tapback name from blktap3 instead of hard-coding */ > +#define TAPBACK_NAME "tapback" > +#define CMD "pidof " TAPBACK_NAME I'm afraid I'm fundamentally unhappy with this approach to detecting the availability of blktap3. Searching the process table for process with particular names is not a good idea. Can't you try to connect to its control socket ? Ian.