From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?q?=C5=81ukasz_Ole=C5=9B?= Subject: Re: [PATCH 0 of 7] blktap2: The tap-ctl userspace control utility and library Date: Tue, 3 Aug 2010 21:14:24 +0200 Message-ID: <201008032114.24684.lukaszoles@gmail.com> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Monday 07 June 2010 23:54:47 Daniel Stodden wrote: > Hi. >=20 > Apart from removing some dead code and tidying up tapdisk-vbd a > little, the bigger introduces our new tap-ctl utility code. >=20 > The code aims to be a complete replacement for the original blktap2 > control path, run through sysfs. Fully implemented in userspace, all > tapdisks now gained a small IPC layer on top of Unix domain sockets. >=20 > Sample usage: >=20 > # tap-ctl allocate > /dev/xen/blktap-2/tapdev0 >=20 > # tap-ctl spawn > tapdisk spawned with pid 4168 >=20 > # tap-ctl list > 4168 - - - - > - 0 - - - >=20 > # tap-ctl attach -p 4168 -m 0 > # tap-ctl list > 4168 0 0 - - >=20 > # tap-ctl open -p 4168 -m 0 -a aio:/var/tmp/lenny.ext >=20 > # tap-ctl list > 4168 0 0 aio /var/tmp/lenny.ext >=20 > # tap-ctl close -p 4168 -m 0 > # tap-ctl detach -p 4168 -m 0 > # tap-ctl free -m 0 >=20 > The above example is a bit noisy, because it's mediating between minor > number (block devices), tapdisks and tapdisk VBDs (the tapdisk I/O > queue running a bdev) in detail. >=20 > There are shortcuts. At the same time, the low-level interface should > be general enough to stay extensible, and help accomodate some of the > more esoteric features, like shared images and/or multiple VBDs > sharing the same tapdisk. I think README file should be also updated. And maybe its good idea to merge it to xen 4.0? =2D- =C5=81ukasz Ole=C5=9B