From f7553ec450b1c13dc46bb9e9ca179b5637aea677 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 24 Dec 2024 17:25:59 +0800 Subject: nvmetcli: upgrade 0.7 -> 0.8 Changelog: ============= - fix common misspellings from codespell project - nvmetcli: set up the target only after the network is configured - nvmetcli: fixup ana groupid setting for namespaces - Documentation: fix typo - nvmetcli: add a tcp example json - nvmetcli: Correct xrange usage for py3 - nvmetcli: Allow different devices for make test - nvmetcli: Report save name correctly - test_nvmet.py: test_invalid_input fails for py3 - nvme.py: Make modprobe work for kmod lib too - nvme.py: Sync the containing directory - nvme.py: Explicit close is redundant - nvmetcli: Improve IOError handling on restore - README: Update URL for configshell-fb - nvmetcli: don't remove ANA Group 1 on clear Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../recipes-support/nvmetcli/nvmetcli_0.7.bb | 39 ---------------------- .../recipes-support/nvmetcli/nvmetcli_0.8.bb | 39 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 39 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.7.bb create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.8.bb diff --git a/meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.7.bb b/meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.7.bb deleted file mode 100644 index ec483321b6..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.7.bb +++ /dev/null @@ -1,39 +0,0 @@ -SUMMARY = "NVM-Express target user space configuration utility." -DESCRIPTION = "This package contains the command line interface to the NVMe \ -over Fabrics nvmet in the Linux kernel. It allows configuring the nvmet \ -interactively as well as saving / restoring the configuration to / from a json \ -file." -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://COPYING;md5=1dece7821bf3fd70fe1309eaa37d52a2" - -inherit systemd setuptools3 - -# nvmet service will start and stop the NVMe Target configuration on boot and -# shutdown from a saved NVMe Target configuration in the /etc/nvmet/config.json -# file. This file is not installed by default since the configuration will vary -# on real systems. Example configuration files are provided by including the -# nvmetcli-examples package. -SYSTEMD_SERVICE:${PN} = "nvmet.service" - -SYSTEMD_AUTO_ENABLE ?= "disable" - -RDEPENDS:${PN} += "python3 python3-six python3-pyparsing python3-configshell-fb" - -SRCREV = "0a6b088db2dc2e5de11e6f23f1e890e4b54fee64" -SRC_URI = "git://git.infradead.org/users/hch/nvmetcli.git;branch=master" - -S = "${WORKDIR}/git" - -do_install:append() { - # Install example configuration scripts. - install -d ${D}${datadir}/nvmet - cp -fr ${S}/examples ${D}${datadir}/nvmet/ - - # Install systemd service file. - install -d ${D}${systemd_unitdir}/system - cp -fr ${S}/nvmet.service ${D}${systemd_unitdir}/system -} - -# Examples package contains example json files used to configure nvmet. -PACKAGES += "${PN}-examples" -FILES:${PN}-examples = "${datadir}/nvmet/examples/*" diff --git a/meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.8.bb b/meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.8.bb new file mode 100644 index 0000000000..ad9873563f --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-support/nvmetcli/nvmetcli_0.8.bb @@ -0,0 +1,39 @@ +SUMMARY = "NVM-Express target user space configuration utility." +DESCRIPTION = "This package contains the command line interface to the NVMe \ +over Fabrics nvmet in the Linux kernel. It allows configuring the nvmet \ +interactively as well as saving / restoring the configuration to / from a json \ +file." +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://COPYING;md5=1dece7821bf3fd70fe1309eaa37d52a2" + +inherit systemd setuptools3 + +# nvmet service will start and stop the NVMe Target configuration on boot and +# shutdown from a saved NVMe Target configuration in the /etc/nvmet/config.json +# file. This file is not installed by default since the configuration will vary +# on real systems. Example configuration files are provided by including the +# nvmetcli-examples package. +SYSTEMD_SERVICE:${PN} = "nvmet.service" + +SYSTEMD_AUTO_ENABLE ?= "disable" + +RDEPENDS:${PN} += "python3 python3-six python3-pyparsing python3-configshell-fb" + +SRCREV = "d323d5a3091af490502c5d025ec7361a3a2cfbd9" +SRC_URI = "git://git.infradead.org/users/hch/nvmetcli.git;branch=master" + +S = "${WORKDIR}/git" + +do_install:append() { + # Install example configuration scripts. + install -d ${D}${datadir}/nvmet + cp -fr ${S}/examples ${D}${datadir}/nvmet/ + + # Install systemd service file. + install -d ${D}${systemd_unitdir}/system + cp -fr ${S}/nvmet.service ${D}${systemd_unitdir}/system +} + +# Examples package contains example json files used to configure nvmet. +PACKAGES += "${PN}-examples" +FILES:${PN}-examples = "${datadir}/nvmet/examples/*" -- cgit v1.2.3-54-g00ecf