Commit 82f14615 authored by Chrysostomos Nanakos's avatar Chrysostomos Nanakos

Add Archipelago disk type

parent 393c27b7
......@@ -127,6 +127,12 @@ static const disk_info_t valve_disk = {
DISK_TYPE_FILTER,
};
static const disk_info_t archipelago_disk = {
"archipelago",
"Archipelago volume image",
0,
};
const disk_info_t *tapdisk_disk_types[] = {
[DISK_TYPE_AIO] = &aio_disk,
[DISK_TYPE_SYNC] = &sync_disk,
......@@ -143,6 +149,7 @@ const disk_info_t *tapdisk_disk_types[] = {
[DISK_TYPE_VALVE] = &valve_disk,
[DISK_TYPE_LLPCACHE] = &llpcache_disk,
[DISK_TYPE_LLECACHE] = &llecache_disk,
[DISK_TYPE_ARCHIPELAGO] = &archipelago_disk,
0,
};
......@@ -167,6 +174,8 @@ extern struct tap_disk tapdisk_llpcache;
extern struct tap_disk tapdisk_llecache;
extern struct tap_disk tapdisk_valve;
extern struct tap_disk tapdisk_archipelago;
const struct tap_disk *tapdisk_disk_drivers[] = {
[DISK_TYPE_AIO] = &tapdisk_aio,
#if 0
......@@ -188,6 +197,7 @@ const struct tap_disk *tapdisk_disk_drivers[] = {
[DISK_TYPE_LLPCACHE] = &tapdisk_llpcache,
[DISK_TYPE_LLECACHE] = &tapdisk_llecache,
[DISK_TYPE_VALVE] = &tapdisk_valve,
[DISK_TYPE_ARCHIPELAGO] = &tapdisk_archipelago,
0,
};
......
......@@ -44,13 +44,14 @@
#define DISK_TYPE_LLECACHE 12
#define DISK_TYPE_LLPCACHE 13
#define DISK_TYPE_VALVE 14
#define DISK_TYPE_ARCHIPELAGO 15
#define DISK_TYPE_NAME_MAX 32
typedef struct disk_info {
const char *name; /* driver name, e.g. 'aio' */
char *desc; /* e.g. "raw image" */
unsigned int flags;
unsigned int flags;
} disk_info_t;
extern const disk_info_t *tapdisk_disk_types[];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment