From: Daniel Stodden <daniel.stodden@citrix.com>
To: Xen <xen-devel@lists.xensource.com>
Subject: [PATCH 0 of 7] blktap2: The tap-ctl userspace control utility and library
Date: Mon, 07 Jun 2010 21:54:47 -0000 [thread overview]
Message-ID: <patchbomb.1275947687@agari.van.xensource.com> (raw)
Hi.
Apart from removing some dead code and tidying up tapdisk-vbd a
little, the bigger introduces our new tap-ctl utility code.
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.
Sample usage:
# tap-ctl allocate
/dev/xen/blktap-2/tapdev0
# tap-ctl spawn
tapdisk spawned with pid 4168
# tap-ctl list
4168 - - - -
- 0 - - -
# tap-ctl attach -p 4168 -m 0
# tap-ctl list
4168 0 0 - -
# tap-ctl open -p 4168 -m 0 -a aio:/var/tmp/lenny.ext
# tap-ctl list
4168 0 0 aio /var/tmp/lenny.ext
# tap-ctl close -p 4168 -m 0
# tap-ctl detach -p 4168 -m 0
# tap-ctl free -m 0
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.
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.
Cheers,
Daniel
next reply other threads:[~2010-06-07 21:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 21:54 Daniel Stodden [this message]
2010-06-07 21:54 ` [PATCH 1 of 7] blktap2: Remove tapdisk-ipc module Daniel Stodden
2010-06-07 21:54 ` [PATCH 2 of 7] blktap2: Remove LVM hacks Daniel Stodden
2010-06-07 21:54 ` [PATCH 3 of 7] blktap2: Fix tapdisk disktype issues Daniel Stodden
2010-06-07 21:54 ` [PATCH 4 of 7] blktap2: Fix E/DPRINTF defs all around the driver/ subdir Daniel Stodden
2010-06-07 21:54 ` [PATCH 5 of 7] blktap2: Cleanup vdi stacking code Daniel Stodden
2010-06-07 21:54 ` [PATCH 6 of 7] blktap2: The tap-ctl userspace control utility and library Daniel Stodden
2010-06-07 21:54 ` [PATCH 7 of 7] blktap2: Port Xend to the tap-ctl interface Daniel Stodden
2010-06-09 20:25 ` Jeremy Fitzhardinge
2010-06-09 20:57 ` Daniel Stodden
2010-06-09 22:11 ` Daniel Stodden
2010-06-09 22:32 ` Jeremy Fitzhardinge
2010-06-10 3:26 ` [PATCH 0 of 4] libxl/blktap2 Daniel Stodden
2010-06-10 3:26 ` [PATCH 1 of 4] blktap2: Fix broken tap-ctl-list type/path filter logic Daniel Stodden
2010-06-10 3:26 ` [PATCH 2 of 4] blktap2: Add tap_ctl_find_minor Daniel Stodden
2010-06-10 3:26 ` [PATCH 3 of 4] blktap2: Build libblktapctl.so Daniel Stodden
2010-06-10 3:26 ` [PATCH 4 of 4] libxl: Use libblktapctl.so Daniel Stodden
2010-06-10 15:43 ` Stefano Stabellini
2010-06-10 20:11 ` Daniel Stodden
2010-06-10 16:25 ` Stefano Stabellini
2010-06-10 22:27 ` Daniel Stodden
2010-06-11 10:42 ` Stefano Stabellini
2010-06-11 13:00 ` Stefano Stabellini
2010-08-03 19:14 ` [PATCH 0 of 7] blktap2: The tap-ctl userspace control utility and library Łukasz Oleś
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=patchbomb.1275947687@agari.van.xensource.com \
--to=daniel.stodden@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).