Adding upstream version 2.2.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1d36de0179
commit
757b718eff
129 changed files with 16110 additions and 0 deletions
22
doc/readthedocs/Makefile
Normal file
22
doc/readthedocs/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Minimal makefile for Sphinx documentation
|
||||
#
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
# You can set these variables from the command line, and also
|
||||
# from the environment for the first two.
|
||||
SPHINXOPTS ?=
|
||||
SPHINXBUILD ?= sphinx-build
|
||||
SOURCEDIR = .
|
||||
BUILDDIR = _build
|
||||
|
||||
# Put it first so that "make" without argument is like "make help".
|
||||
.PHONY: help
|
||||
help:
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
||||
|
||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
.PHONY: Makefile
|
||||
%: Makefile
|
||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
34
doc/readthedocs/conf.py
Normal file
34
doc/readthedocs/conf.py
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file only contains a selection of the most common options. For a full
|
||||
# list see the documentation:
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = 'nvme-stas'
|
||||
copyright = 'Copyright (c) 2022, Dell Inc. or its subsidiaries. All rights reserved.'
|
||||
author = 'Martin Belanger <martin.belanger@dell.com>'
|
||||
master_doc = 'index'
|
||||
|
||||
version = '@VERSION@'
|
||||
release = '@VERSION@'
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.autosummary',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This pattern also affects html_static_path and html_extra_path.
|
||||
exclude_patterns = ['Thumbs.db', '.DS_Store']
|
1
doc/readthedocs/environment.txt
Normal file
1
doc/readthedocs/environment.txt
Normal file
|
@ -0,0 +1 @@
|
|||
sphinx==5.3.0
|
30
doc/readthedocs/index.rst
Normal file
30
doc/readthedocs/index.rst
Normal file
|
@ -0,0 +1,30 @@
|
|||
Welcome to nvme-stas's documentation!
|
||||
=====================================
|
||||
|
||||
What does nvme-stas provide?
|
||||
|
||||
* A Central Discovery Controller (CDC) client for Linux
|
||||
* Asynchronous Event Notifications (AEN) handling
|
||||
* Automated NVMe subsystem connection controls
|
||||
* Error handling and reporting
|
||||
* Automatic (zeroconf) and Manual configuration
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:caption: Contents:
|
||||
|
||||
installation.rst
|
||||
nvme-stas.rst
|
||||
stafd-index.rst
|
||||
stacd-index.rst
|
||||
stasadm.rst
|
||||
sys.conf.rst
|
||||
stas-config.target.rst
|
||||
stas-config@.service.rst
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
28
doc/readthedocs/installation.rst
Normal file
28
doc/readthedocs/installation.rst
Normal file
|
@ -0,0 +1,28 @@
|
|||
Installation
|
||||
============
|
||||
|
||||
Debian / Ubuntu:
|
||||
----------------
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ apt-get install nvme-stas
|
||||
|
||||
Fedora / Red Hat:
|
||||
-----------------
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
$ dnf install nvme-stas
|
||||
|
||||
Python Version
|
||||
--------------
|
||||
|
||||
The latest Python 3 version is always recommended, since it has all the latest bells and
|
||||
whistles. libnvme supports Python 3.6 and above.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
nvme-stas is built on top of libnvme, which is used to interact with the kernel's NVMe driver (i.e. drivers/nvme/host/). To support all the features of nvme-stas, several changes to the Linux kernel are required. nvme-stas can also operate with older kernels, but with limited functionality. Kernel 5.18 provides all the features needed by nvme-stas. nvme-stas can also work with older kernels that include back-ported changes to the NVMe driver.
|
||||
|
35
doc/readthedocs/make.bat
Normal file
35
doc/readthedocs/make.bat
Normal file
|
@ -0,0 +1,35 @@
|
|||
@ECHO OFF
|
||||
|
||||
pushd %~dp0
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set SOURCEDIR=.
|
||||
set BUILDDIR=_build
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
%SPHINXBUILD% >NUL 2>NUL
|
||||
if errorlevel 9009 (
|
||||
echo.
|
||||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
||||
echo.installed, then set the SPHINXBUILD environment variable to point
|
||||
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
||||
echo.may add the Sphinx directory to PATH.
|
||||
echo.
|
||||
echo.If you don't have Sphinx installed, grab it from
|
||||
echo.https://www.sphinx-doc.org/
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
||||
goto end
|
||||
|
||||
:help
|
||||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
||||
|
||||
:end
|
||||
popd
|
64
doc/readthedocs/meson.build
Normal file
64
doc/readthedocs/meson.build
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Copyright (c) 2022, Dell Inc. or its subsidiaries. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# See the LICENSE file for details.
|
||||
#
|
||||
# This file is part of NVMe STorage Appliance Services (nvme-stas).
|
||||
#
|
||||
# Authors: Martin Belanger <Martin.Belanger@dell.com>
|
||||
#
|
||||
|
||||
pandoc = find_program('pandoc', required: true)
|
||||
|
||||
components = [
|
||||
'conf.py',
|
||||
'Makefile',
|
||||
'make.bat',
|
||||
'index.rst',
|
||||
'environment.txt',
|
||||
'installation.rst',
|
||||
'nvme-stas.rst',
|
||||
'org.nvmexpress.stac.debug.rst',
|
||||
'org.nvmexpress.stac.rst',
|
||||
'org.nvmexpress.staf.debug.rst',
|
||||
'org.nvmexpress.staf.rst',
|
||||
'stacctl.rst',
|
||||
'stacd-index.rst',
|
||||
'stacd.conf.rst',
|
||||
'stacd.rst',
|
||||
'stacd.service.rst',
|
||||
'stafctl.rst',
|
||||
'stafd-index.rst',
|
||||
'stafd.conf.rst',
|
||||
'stafd.rst',
|
||||
'stafd.service.rst',
|
||||
'stas-config.target.rst',
|
||||
'stas-config@.service.rst',
|
||||
'stasadm.rst',
|
||||
'sys.conf.rst',
|
||||
]
|
||||
foreach component : components
|
||||
configure_file(
|
||||
input: component,
|
||||
output: component,
|
||||
configuration: conf,
|
||||
)
|
||||
endforeach
|
||||
|
||||
foreach tuple: html_files
|
||||
stem = tuple[0]
|
||||
html_file = tuple[1]
|
||||
rst = '_' + stem + '.rst'
|
||||
custom_target(
|
||||
rst,
|
||||
input: html_file,
|
||||
output: rst,
|
||||
build_by_default: true,
|
||||
command: [
|
||||
pandoc,
|
||||
'-f', 'html',
|
||||
'-t', 'rst',
|
||||
'-o', '@OUTPUT@',
|
||||
'@INPUT@'
|
||||
]
|
||||
)
|
||||
endforeach
|
5
doc/readthedocs/nvme-stas.rst
Normal file
5
doc/readthedocs/nvme-stas.rst
Normal file
|
@ -0,0 +1,5 @@
|
|||
==========================
|
||||
STorage Appliance Services
|
||||
==========================
|
||||
|
||||
.. include:: _nvme-stas.rst
|
7
doc/readthedocs/org.nvmexpress.stac.debug.rst
Normal file
7
doc/readthedocs/org.nvmexpress.stac.debug.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=========================
|
||||
org.nvmexpress.stac.debug
|
||||
=========================
|
||||
.. module:: org.nvmexpress.stac.debug
|
||||
|
||||
.. include:: _org.nvmexpress.stac.debug.rst
|
||||
|
7
doc/readthedocs/org.nvmexpress.stac.rst
Normal file
7
doc/readthedocs/org.nvmexpress.stac.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
===================
|
||||
org.nvmexpress.stac
|
||||
===================
|
||||
.. module:: org.nvmexpress.stac
|
||||
|
||||
.. include:: _org.nvmexpress.stac.rst
|
||||
|
7
doc/readthedocs/org.nvmexpress.staf.debug.rst
Normal file
7
doc/readthedocs/org.nvmexpress.staf.debug.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=========================
|
||||
org.nvmexpress.staf.debug
|
||||
=========================
|
||||
.. module:: org.nvmexpress.staf.debug
|
||||
|
||||
.. include:: _org.nvmexpress.staf.debug.rst
|
||||
|
7
doc/readthedocs/org.nvmexpress.staf.rst
Normal file
7
doc/readthedocs/org.nvmexpress.staf.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
===================
|
||||
org.nvmexpress.staf
|
||||
===================
|
||||
.. module:: org.nvmexpress.staf
|
||||
|
||||
.. include:: _org.nvmexpress.staf.rst
|
||||
|
7
doc/readthedocs/stacctl.rst
Normal file
7
doc/readthedocs/stacctl.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=======
|
||||
stacctl
|
||||
=======
|
||||
.. module:: stacctl
|
||||
|
||||
.. include:: _stacctl.rst
|
||||
|
13
doc/readthedocs/stacd-index.rst
Normal file
13
doc/readthedocs/stacd-index.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
STorage Appliance Connector
|
||||
===========================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
stacd.rst
|
||||
stacd.conf.rst
|
||||
stacd.service.rst
|
||||
stacctl.rst
|
||||
org.nvmexpress.stac.rst
|
||||
org.nvmexpress.stac.debug.rst
|
||||
|
7
doc/readthedocs/stacd.conf.rst
Normal file
7
doc/readthedocs/stacd.conf.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
==========
|
||||
stacd.conf
|
||||
==========
|
||||
.. module:: stacd.conf
|
||||
|
||||
.. include:: _stacd.conf.rst
|
||||
|
8
doc/readthedocs/stacd.rst
Normal file
8
doc/readthedocs/stacd.rst
Normal file
|
@ -0,0 +1,8 @@
|
|||
=====
|
||||
stacd
|
||||
=====
|
||||
.. module:: stacd
|
||||
|
||||
.. include:: _stacd.rst
|
||||
|
||||
|
7
doc/readthedocs/stacd.service.rst
Normal file
7
doc/readthedocs/stacd.service.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=============
|
||||
stacd.service
|
||||
=============
|
||||
.. module:: stacd.service
|
||||
|
||||
.. include:: _stacd.service.rst
|
||||
|
7
doc/readthedocs/stafctl.rst
Normal file
7
doc/readthedocs/stafctl.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=======
|
||||
stafctl
|
||||
=======
|
||||
.. module:: stafctl
|
||||
|
||||
.. include:: _stafctl.rst
|
||||
|
13
doc/readthedocs/stafd-index.rst
Normal file
13
doc/readthedocs/stafd-index.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
STorage Appliance Finder
|
||||
========================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
stafd.rst
|
||||
stafd.conf.rst
|
||||
stafd.service.rst
|
||||
stafctl.rst
|
||||
org.nvmexpress.staf.rst
|
||||
org.nvmexpress.staf.debug.rst
|
||||
|
7
doc/readthedocs/stafd.conf.rst
Normal file
7
doc/readthedocs/stafd.conf.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
==========
|
||||
stafd.conf
|
||||
==========
|
||||
.. module:: stafd.conf
|
||||
|
||||
.. include:: _stafd.conf.rst
|
||||
|
7
doc/readthedocs/stafd.rst
Normal file
7
doc/readthedocs/stafd.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=====
|
||||
stafd
|
||||
=====
|
||||
.. module:: stafd
|
||||
|
||||
.. include:: _stafd.rst
|
||||
|
7
doc/readthedocs/stafd.service.rst
Normal file
7
doc/readthedocs/stafd.service.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=============
|
||||
stafd.service
|
||||
=============
|
||||
.. module:: stafd.service
|
||||
|
||||
.. include:: _stafd.service.rst
|
||||
|
7
doc/readthedocs/stas-config.target.rst
Normal file
7
doc/readthedocs/stas-config.target.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
==================
|
||||
stas-config.target
|
||||
==================
|
||||
.. module:: stas-config.target
|
||||
|
||||
.. include:: _stas-config.target.rst
|
||||
|
7
doc/readthedocs/stas-config@.service.rst
Normal file
7
doc/readthedocs/stas-config@.service.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
====================
|
||||
stas-config@.service
|
||||
====================
|
||||
.. module:: stas-config@.service
|
||||
|
||||
.. include:: _stas-config@.service.rst
|
||||
|
7
doc/readthedocs/stasadm.rst
Normal file
7
doc/readthedocs/stasadm.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
=======
|
||||
stasadm
|
||||
=======
|
||||
.. module:: stasadm
|
||||
|
||||
.. include:: _stasadm.rst
|
||||
|
7
doc/readthedocs/sys.conf.rst
Normal file
7
doc/readthedocs/sys.conf.rst
Normal file
|
@ -0,0 +1,7 @@
|
|||
========
|
||||
sys.conf
|
||||
========
|
||||
.. module:: sys.conf
|
||||
|
||||
.. include:: _sys.conf.rst
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue