]> www.infradead.org Git - users/sagi/libnvme.git/log
users/sagi/libnvme.git
5 years agotests: Fix fw log check
Keith Busch [Fri, 7 Feb 2020 04:30:03 +0000 (20:30 -0800)]
tests: Fix fw log check

Had the return check inverted (0 is success).

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoutil: Fix default log transfer length typo
Keith Busch [Fri, 7 Feb 2020 04:26:06 +0000 (20:26 -0800)]
util: Fix default log transfer length typo

Transfer lengths are 4k, not 4086 bytes.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoAdd README
Keith Busch [Fri, 7 Feb 2020 04:08:39 +0000 (20:08 -0800)]
Add README

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoAdd license information
Keith Busch [Fri, 7 Feb 2020 03:55:01 +0000 (19:55 -0800)]
Add license information

Added LGPL licence via:

  wget https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt -O COPYING

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agotests: Remove some of the output
Keith Busch [Fri, 7 Feb 2020 02:37:51 +0000 (18:37 -0800)]
tests: Remove some of the output

Remove parts made redundant with the examples/display programs.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoAdd documentation
Keith Busch [Fri, 7 Feb 2020 02:04:07 +0000 (18:04 -0800)]
Add documentation

Experimenting with documentation generation:

Initialize sphinx documentation building.

Use linux's 'scripts/kernel-doc' to extract documentation comments from
source and format as .rst file.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoexamples: Add loop discover example
Keith Busch [Fri, 7 Feb 2020 00:43:45 +0000 (16:43 -0800)]
examples: Add loop discover example

A basic fabrics example discoverying loop nvme fabric targets. Apply
fixes and updates to lib code as needed from testing.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoexamples: Add column disaply of topology
Keith Busch [Thu, 6 Feb 2020 23:12:55 +0000 (15:12 -0800)]
examples: Add column disaply of topology

Pretty print nvme topology in detailed columns.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoexamples/telemetry: Fix scanning uevent file
Keith Busch [Thu, 6 Feb 2020 22:58:10 +0000 (14:58 -0800)]
examples/telemetry: Fix scanning uevent file

Continue to the next line if current one does not contain async event
information.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoAdd nvme display tree example
Keith Busch [Thu, 6 Feb 2020 22:49:40 +0000 (14:49 -0800)]
Add nvme display tree example

Simple visual demonstration of an nvme topology.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoAdd exported symbols to libnvme.map
Keith Busch [Thu, 6 Feb 2020 22:23:26 +0000 (14:23 -0800)]
Add exported symbols to libnvme.map

And add the kernel-doc style comments in all exported functions.

This is just a capture of what currently exists and may change prior to tagging
as a stable release.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoAdd a telemetry scan example
Keith Busch [Thu, 6 Feb 2020 20:53:30 +0000 (12:53 -0800)]
Add a telemetry scan example

Copy the liburing directory structure and start adding examples. The first
example monitors all devices for telemetry events, and if available will write
out the telemetry log to a file in /var/log/.

While developing the example, some other misc fixes and updates were added to
the library code.

Signed-off-by: Keith Busch <kbusch@kernel.org>
5 years agoInitial libnvme commit
Keith Busch [Thu, 6 Feb 2020 14:14:59 +0000 (06:14 -0800)]
Initial libnvme commit

Most of the planned features are developed, however many of the interfaces have
only been lighlty touched as the features they implement are not broadly
supported in hardware.

The remaining gaps in command support from 1.4 are:

  Management Interface Send/Recieve OOB support
  Persistent Event Logs

There is no plan to support Abort, AER, IO SQ/CQ Create/Delete, or Doorbell
Buffer Config since that has high risk to abuse and interfere with the
stability of a running system.

Signed-off-by: Keith Busch <kbusch@kernel.org>