Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Sreeni (Sreenivasa) Busam (Stellus) <s.busam at stellus.com>
To: spdk@lists.01.org
Subject: [SPDK] Request for more details on SPDK driver API.
Date: Sat, 11 Nov 2017 01:24:38 +0000	[thread overview]
Message-ID: <2d1a050aa5d84f13a85ed8f587afeeb6@stellus.com> (raw)
In-Reply-To: CGME20171111012439uscas1p1e9f78f851215bc85ccf0a4f891d277e7@uscas1p1.samsung.com

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

I am new to SPDK driver and trying to understand the various API's available to do I/O on NVMe local device and using NVMeoF protocol on a target device.
I see different interfaces for the read and write I/O operations.
It seems there are two types of interfaces available.
1. spdk_nvme_ns_cmd_read() and spdk_nvme_ns_cmd_write() and related function. This is used for PCIe devices. It seems to apply to devices attached locally.
2. spdk_bdev_read_blocks() and spdk_bdev_write_blocks() and related API's in lib/bdev.
I have been looking at the code and trying to understand how this API and related APIs for the module has been used, the API's in 2. are used for blobfs I/O operation spdk/lib/blob/bdev/*, when there is a blob filesystem and for I/O operation on NVMe devices using NVMeoF protocol spdk/lib/nvmf/*.
Is this a correct assumption? Is the lib/bdev layer developed to address only these cases?
Can the lib/bdev API be used on a local NVMe device? If so, is there a test program to understand how to create a bdev device and do the I/O on NVMe SSD block device?
Please let me know if there is an example to understand how to use the lib/nvmf interfaces. I want to test a device on remote target using NVMeoF protocol.

Thanks very much for any help in the lib/bdev API.



[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 5106 bytes --]

             reply	other threads:[~2017-11-11  1:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-11  1:24 Sreeni Busam [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-11-11 14:40 [SPDK] Request for more details on SPDK driver API Luse, Paul E
2017-11-13  6:36 Sreeni Busam
2017-11-13 19:47 Sreeni Busam
2017-11-13 19:54 Harris, James R
2017-11-13 19:56 Luse, Paul E
2017-11-13 21:07 Sreeni Busam
2017-11-13 21:16 Sreeni Busam
2017-11-13 21:54 Walker, Benjamin
2017-11-13 23:14 Sreeni Busam

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=2d1a050aa5d84f13a85ed8f587afeeb6@stellus.com \
    --to=spdk@lists.01.org \
    /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