Skip to content

Files

Latest commit

c8567b6 · Nov 16, 2022

History

History
This branch is 1076 commits behind opiproject/opi-spdk-bridge:main.

spdk

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 5, 2022
Nov 16, 2022
Aug 5, 2022

OPI Storage SPDK container

This directory contains an example SPDK app to demonstrate the OPI Storage APIs integration.

Docs

Getting started

Run docker-compose up spdk

SPDK RPC proxy

$ curl -k --user spdkuser:spdkpass -X POST -H "Content-Type: application/json" -d '{"id": 1, "method": "bdev_get_bdevs", "params": {"name": "Malloc0"}}' http://127.0.0.1:9009/
{"jsonrpc":"2.0","id":1,"result":[{"name":"Malloc0","aliases":["f1c5d95a-b235-40af-9e4d-2c0b3320de80"],"product_name":"Malloc disk","block_size":512,"num_blocks":131072,"uuid":"f1c5d95a-b235-40af-9e4d-2c0b3320de80","assigned_rate_limits":{"rw_ios_per_sec":0,"rw_mbytes_per_sec":0,"r_mbytes_per_sec":0,"w_mbytes_per_sec":0},"claimed":false,"zoned":false,"supported_io_types":{"read":true,"write":true,"unmap":true,"write_zeroes":true,"flush":true,"reset":true,"nvme_admin":false,"nvme_io":false},"driver_specific":{}}]}