1
0
Fork 0

Adding upstream version 2.2.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Benjamin Drung 2025-02-16 12:41:59 +01:00 committed by Daniel Baumann
parent 1d36de0179
commit 757b718eff
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
129 changed files with 16110 additions and 0 deletions

22
doc/readthedocs/Makefile Normal file
View 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
View 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']

View file

@ -0,0 +1 @@
sphinx==5.3.0

30
doc/readthedocs/index.rst Normal file
View 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`

View 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
View 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

View 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

View file

@ -0,0 +1,5 @@
==========================
STorage Appliance Services
==========================
.. include:: _nvme-stas.rst

View file

@ -0,0 +1,7 @@
=========================
org.nvmexpress.stac.debug
=========================
.. module:: org.nvmexpress.stac.debug
.. include:: _org.nvmexpress.stac.debug.rst

View file

@ -0,0 +1,7 @@
===================
org.nvmexpress.stac
===================
.. module:: org.nvmexpress.stac
.. include:: _org.nvmexpress.stac.rst

View file

@ -0,0 +1,7 @@
=========================
org.nvmexpress.staf.debug
=========================
.. module:: org.nvmexpress.staf.debug
.. include:: _org.nvmexpress.staf.debug.rst

View file

@ -0,0 +1,7 @@
===================
org.nvmexpress.staf
===================
.. module:: org.nvmexpress.staf
.. include:: _org.nvmexpress.staf.rst

View file

@ -0,0 +1,7 @@
=======
stacctl
=======
.. module:: stacctl
.. include:: _stacctl.rst

View 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

View file

@ -0,0 +1,7 @@
==========
stacd.conf
==========
.. module:: stacd.conf
.. include:: _stacd.conf.rst

View file

@ -0,0 +1,8 @@
=====
stacd
=====
.. module:: stacd
.. include:: _stacd.rst

View file

@ -0,0 +1,7 @@
=============
stacd.service
=============
.. module:: stacd.service
.. include:: _stacd.service.rst

View file

@ -0,0 +1,7 @@
=======
stafctl
=======
.. module:: stafctl
.. include:: _stafctl.rst

View 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

View file

@ -0,0 +1,7 @@
==========
stafd.conf
==========
.. module:: stafd.conf
.. include:: _stafd.conf.rst

View file

@ -0,0 +1,7 @@
=====
stafd
=====
.. module:: stafd
.. include:: _stafd.rst

View file

@ -0,0 +1,7 @@
=============
stafd.service
=============
.. module:: stafd.service
.. include:: _stafd.service.rst

View file

@ -0,0 +1,7 @@
==================
stas-config.target
==================
.. module:: stas-config.target
.. include:: _stas-config.target.rst

View file

@ -0,0 +1,7 @@
====================
stas-config@.service
====================
.. module:: stas-config@.service
.. include:: _stas-config@.service.rst

View file

@ -0,0 +1,7 @@
=======
stasadm
=======
.. module:: stasadm
.. include:: _stasadm.rst

View file

@ -0,0 +1,7 @@
========
sys.conf
========
.. module:: sys.conf
.. include:: _sys.conf.rst