diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-29 08:54:51 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-29 08:54:51 +0000 |
commit | fedebce36446b00fbff2295d7e29813226a12ca0 (patch) | |
tree | c7bc3e55d4e952bb3c377814bb284ea65e6dffaa /tools/blktap2/include | |
parent | 1ac52b69d483f6acc1182520974113cdfb774eb0 (diff) | |
download | xen-fedebce36446b00fbff2295d7e29813226a12ca0.tar.gz xen-fedebce36446b00fbff2295d7e29813226a12ca0.tar.bz2 xen-fedebce36446b00fbff2295d7e29813226a12ca0.zip |
blktap2: Separate tapdisk raw I/O into different backends.
Hide tapdisk support for different raw I/O interfaces behind a new
struct tio. Libaio remains to dominate the interface, requiring
everyone to dispatch iocb/ioevent structs.
Backends:
- lio: Kernel AIO via libaio.
- rwio: Canonical read/write() mode.
Misc:
- Fixes a bug in tapdisk-vbd which locks up the sync io mode.
- Wants a PERROR macro in blktaplib.h
- Removes dead code in qcow2raw to make it link again.
Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
Signed-off-by: Jake Wires <jake.wires@citrix.com>
Diffstat (limited to 'tools/blktap2/include')
-rw-r--r-- | tools/blktap2/include/blktaplib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/blktap2/include/blktaplib.h b/tools/blktap2/include/blktaplib.h index 1824afa943..b928240911 100644 --- a/tools/blktap2/include/blktaplib.h +++ b/tools/blktap2/include/blktaplib.h @@ -43,6 +43,7 @@ #endif #define EPRINTF(_f, _a...) syslog(LOG_ERR, "tap-err:%s: " _f, __func__, ##_a) +#define PERROR(_f, _a...) EPRINTF(_f ": %s", ##_a, strerror(errno)) #define BLK_RING_SIZE __RING_SIZE((blkif_sring_t *)0, XC_PAGE_SIZE) |