search for: drive_protocol_spdk

Displaying 1 result from an estimated 1 matches for "drive_protocol_spdk".

2018 Aug 09
0
Using SPDK as QEMU's rootfs disk && A patch for libguestfs to support SPDK
...unix) { + error (g, _("spdk: only unix transport is supported")); + return NULL; + } + + return create_drive_non_file (g, data); +} + +bool +guestfs_int_has_spdk_drive (guestfs_h *g) +{ + size_t i; + struct drive *drv; + ITER_DRIVES(g, i, drv) { + if (drv->src.protocol == drive_protocol_spdk) { + return true; + } + } + return false; +} + /** * Create the special F</dev/null> drive. * @@ -494,6 +533,7 @@ guestfs_int_drive_protocol_to_string (enum drive_protocol protocol) case drive_protocol_sheepdog: return "sheepdog"; case drive_protocol_ssh: return...