Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from linux-nvme:master #41

Open
wants to merge 281 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
281 commits
Select commit Hold shift + click to select a range
b138de6
ocp: Update Plugin Version
jeff-lien-wdc Jul 5, 2024
e9c2e8f
plugins/micron: Add support for OCP telemetry log parsing
saskchaithanya May 24, 2024
f9baeb6
nvme-rpmb: send RPMB_REQ_READ_RESULT for authentication key programming
ikegami-t Jun 28, 2024
92eaf9a
doc: fix micron ocp telemetry log parse title
igaw Jul 9, 2024
5cbfb18
nvme: fix verbose logging
martin-gpy Jul 8, 2024
39f97ac
ocp: set UUID index for eol-plp-failure-mode command to get
ikegami-t Jul 7, 2024
2e9a5bf
doc: fix ocp eol-plp-failure-mode select short option
ikegami-t Jul 7, 2024
ff0b762
ocp: fix eol-plp-failure-mode command sel option value
ikegami-t Jul 7, 2024
de01421
ocp: add get-error-injection command
ikegami-t Jul 7, 2024
5a52f60
doc: add ocp get-error-injection command
ikegami-t Jul 7, 2024
eb659fe
completions: add ocp get-error-injection command
ikegami-t Jul 7, 2024
cb977c1
build: add documentation CI build
igaw Jul 10, 2024
5746db3
nvme-print-binary: add effects-log command output missed
ikegami-t Jul 9, 2024
dca16e4
build: bump libnvme wrap
nitin-sao Jun 26, 2024
75efb73
nvme-print: add new field added in TP4090
nitin-sao Jun 26, 2024
e0a8a5a
nvme: check MD size with PI size when PRACT set to 1
francispravin5 Jul 12, 2024
da8c4ea
build: bump libnvme wrap
igaw Jul 12, 2024
4813463
fabrics: use cleanup helper to free nvme root object
igaw Jul 3, 2024
824911a
fabrics: extend already connected message
igaw Jul 11, 2024
fb91adb
fabrics: use helper to lookup default hostnqn/hostid
igaw Jul 3, 2024
89008c0
fabrics: first read config before topology scanning
igaw Jul 11, 2024
b3b9963
fabrics: refactore discover from json config
igaw Jul 5, 2024
927aac9
fabrics: connect all hosts in config.json
igaw Jul 9, 2024
1d00848
ccan: Add freed pointer checking to delete strset member
ikegami-t Feb 23, 2024
5f5d8b2
build: add static build target
igaw Jul 12, 2024
9d557b8
build: show git version used during configuration
igaw Jul 12, 2024
edb1bb4
build: fetch complete git history
igaw Jul 12, 2024
698d356
build: use official download action
igaw Jul 12, 2024
6b709ad
build(deps): bump mosteo-actions/docker-run from 1 to 2
dependabot[bot] Jul 15, 2024
e99ee46
wdc: Update and refactor the C0h log page parsing
jeff-lien-wdc Jan 8, 2024
aa061c7
test: add test cases for argconfig option values
calebsander Jul 16, 2024
5456014
test: add test cases for argconfig comma-separated array parsing
calebsander Jul 16, 2024
f02e953
util: remove argconfig CFG_SIZE type
calebsander Jul 16, 2024
ea53e6e
util: remove argconfig_parse_val() declaration
calebsander Jul 16, 2024
7a925d6
util: make argconfig_set_opt_val() a void function
calebsander Jul 16, 2024
ba72357
util: use cleanup to avoid goto in argconfig_parse()
calebsander Jul 16, 2024
6f691a9
util: remove redundant NULL check in argconfig_print_help()
calebsander Jul 16, 2024
0e54374
util: inline argconfig_parse_byte()
calebsander Jul 16, 2024
37853a9
util: remove redundant cast in argconfig_parse_type()
calebsander Jul 16, 2024
957d942
util: remove unnecessary parentheses in argconfig_parse_type()
calebsander Jul 16, 2024
2a68afc
util: remove empty default case in argconfig functions
calebsander Jul 16, 2024
3771bbc
util: reduce arguments passed to argconfig_parse_type()
calebsander Jul 16, 2024
1b3ba5d
util: reduce complexity of argconfig_parse_val()
calebsander Jul 16, 2024
c876149
util: consolidate call paths to argconfig_parse_type()
calebsander Jul 16, 2024
9f9d558
util: reduce allocation sizes in argconfig_parse()
calebsander Jul 16, 2024
28eee1a
util: introduce is_null_or_empty() to avoid strlen()
calebsander Jul 16, 2024
8b902ec
util: remove redundant loop condition in argconfig_parse()
calebsander Jul 16, 2024
72f3ab6
util: avoid duplication in argconfig_parse_comma_sep_array*()
calebsander Jul 16, 2024
648114f
nvme: use argconfig_parse_comma_sep_array_u16() in attach-ns
calebsander Jul 16, 2024
4e61659
util: remove unnecessary NULL check in cleanup_nvme_root()
calebsander Jul 16, 2024
03006b9
nvme: avoid unnecessary dup() + close() in io_mgmt_send()
calebsander Jul 17, 2024
0a47891
fabrics: remove unused _discover_from_json_config_file() argument
calebsander Jul 17, 2024
c01c44b
plugins/micron: Move OCP internal log parsing from Micron to OCP Plugin.
Jul 14, 2024
b17b2d9
nvme-print: Added print for two new fields for HMB feature
nitin-sao Jul 16, 2024
8642be4
utils: add missing header
igaw Jul 17, 2024
f9050af
utils: cleanup includes in utils.h
igaw Jul 17, 2024
4e12804
utils: fix print formatting option
igaw Jul 17, 2024
ede9a5f
nvme: use proper mask to get correct lbafu value
francispravin5 Jul 18, 2024
0979f22
nvme: use argconfig_parse_seen to check conditions
xyzhang-up Jul 19, 2024
e110835
ocp: add set-error-injection command
ikegami-t Jul 7, 2024
54f684c
doc: add ocp set-error-injection command
ikegami-t Jul 21, 2024
4564405
completions: add ocp set-error-injection command
ikegami-t Jul 21, 2024
fa02967
plugins/virtium: use time_t for time_stamp values
hrasiq Jul 24, 2024
f17afe1
fabrics: print an error for ENOENT too
martin-gpy Jul 17, 2024
c8612d3
fabrics: use cleanup helper where possible
igaw Jul 26, 2024
a11a96f
fabrics: do not report error when no modules are loaded when disconne…
igaw Jul 26, 2024
9e137f0
nvme-print-stdout: fix persistent-event-log set feature event output
xyzhang-up Jul 27, 2024
1bc46a0
plugins/ocp: fix UAF when printing telemetry log
VigneshwaranSaravana Jul 30, 2024
55f980a
fabrics: check if json config is existing
igaw Jul 11, 2024
9aaa137
fabrics: drop --disable-sqflow alias -d
igaw Jul 11, 2024
72f9604
fabrics: drop --quiet alias -S
igaw Jul 11, 2024
58f04d7
wdc: OCP 2.5 Log Page Updates
jeff-lien-wdc Jul 16, 2024
8259e8f
nvme: return -ENXIO value to open device if errno not set
ikegami-t Jul 18, 2024
0598cd6
nvme: extend help message when mmap regs fails
igaw Aug 1, 2024
353e0fb
fabrics: do not leak nvme_ctrl_t object on connect
igaw Aug 1, 2024
ea015e9
nvme: avoid segfault in show-topology
martin-gpy Aug 1, 2024
2f091d9
fabrics: avoid potential segfault in nvmf_dim()
martin-gpy Aug 1, 2024
eeea85c
sed: Fix parsing of Discovery0 features
mbroz Aug 1, 2024
7ace398
build: bump libnvme wrap
igaw Aug 2, 2024
c9e8ec4
doc: Regenerate all docs for v2.10
igaw Aug 2, 2024
7960a12
Release v2.10
igaw Aug 2, 2024
4c1e89f
docs: rename ocp-unsupported-req-log file
igaw Aug 2, 2024
9dd886a
build: add install step to doc CI build
igaw Aug 2, 2024
66df29f
doc: Regenerate all docs for v2.10.1
igaw Aug 5, 2024
09a350d
Release v2.10.1
igaw Aug 5, 2024
abbe254
build: fix libnvme dependency
igaw Aug 5, 2024
04036cd
doc: Regenerate all docs for v2.10.2
igaw Aug 5, 2024
eeaa08c
Release v2.10.2
igaw Aug 5, 2024
5bb5100
plugins: Add a new DapuStor plugin and the smart-log-add command
xyzhang-up Aug 6, 2024
ba85f27
build: bump libnvme wrap
nitin-sao Aug 6, 2024
c19d90a
nvme-print-stdout: Added print for new field CSER (TP4167)
nitin-sao Aug 6, 2024
2634b41
plugins/dapustor: dapustor smart-log-add update
xyzhang-up Aug 7, 2024
103a273
nvme-print: print the new fields added in TP4165
francispravin5 Aug 7, 2024
2d6bbb6
completions: add the zsh completion of the dapustor plugin
xyzhang-up Aug 8, 2024
48bc3cf
build: update libnvme wrap
francispravin5 Aug 9, 2024
3a1048e
nvme-print: use Completion Condition enum
francispravin5 Aug 9, 2024
bfee2b2
nvme-print: use LC_MEASUREMENT to check fahrenheit temperature
ikegami-t Aug 11, 2024
a52205d
wdc: Add Support for new SN-861 PCI device id
jeff-lien-wdc Aug 8, 2024
9e7f171
plugins/innogrit: modify for project tacoma
Aug 14, 2024
7ad9d9a
nvme-print: print the new fields added in TP4142
francispravin5 Aug 16, 2024
7bb2940
netapp: fix uninitialized value from heap error
martin-gpy Aug 16, 2024
cc87270
netapp: segregate the print routines
martin-gpy Aug 16, 2024
8642daa
netapp: print output for single device too
martin-gpy Aug 16, 2024
6c7bc6a
nvme-print: add subsystype to the list-subsys output
martin-gpy Aug 18, 2024
e6d61b8
nvme-print: update subsys verbose outputs
martin-gpy Aug 18, 2024
7cdd12e
nvme-print-stdout: use NVME_FEAT util definitions
ikegami-t Aug 19, 2024
ecb51ed
plugins/wdc: fix json output for vs-nand-stats
Aug 16, 2024
14d0935
plugins/fdp: bugfix error check to validate output format
hmi-jeon Aug 21, 2024
4e41b60
build: update libnvme wrap
ankitvvsoni Aug 23, 2024
25b3a6b
nvme-print: added new fields for nvm_id_ns
ankitvvsoni Aug 23, 2024
97a8584
plugins/solidigm : Fixing vs-internal-log to generate identify per al…
HaroPanosyan Aug 21, 2024
0973f27
nvme-print: sanitize error-log output
martin-gpy Aug 29, 2024
0dca717
util: extern uint128_t_to_double() function
ikegami-t Aug 30, 2024
93a075b
logging: add print_info function
ikegami-t Aug 31, 2024
838f21e
nvme-print-stdout: add print_array function
ikegami-t Aug 31, 2024
8802163
nvme: update nvme_insert_tls_key_versioned() return handling
martin-gpy Sep 1, 2024
835bf02
ocp: fix to set return value to get c9 log page data
ikegami-t Sep 1, 2024
75ba96a
ocp: fix to return c9 log page data error to open file
ikegami-t Sep 1, 2024
f0379a8
ocp: Change C9 function names to use c9 instead
ikegami-t Sep 1, 2024
e152e97
ocp: fix ocp-nvme.c coding style errors
ikegami-t Sep 1, 2024
c5af2d2
plugins/solidigm: fix use after free.
maurizio-lombardi Sep 2, 2024
b725f31
nvme-print-json: use _cleanup_free_
ikegami-t Sep 7, 2024
f7c7953
nvme: use NVME_GET_FEATURES_SEL_SUPPORTED definition
ikegami-t Sep 8, 2024
53f2b1a
fabrics: fix incorrect access filename check
martin-gpy Aug 28, 2024
caa1544
ocp: add get-enable-ieee1667-silo command
ikegami-t Sep 8, 2024
db17e9a
ocp: add error recovery log page version 3
ikegami-t Sep 3, 2024
c30898a
ocp: add SMART / health information extended log page version 4
ikegami-t Sep 3, 2024
668f51d
nvme-print-json: extern json object add functions
ikegami-t Sep 9, 2024
902f562
Add Support for new SN655 PCI Device ID
jeff-lien-wdc Sep 12, 2024
e2025d6
netapp-smdevices: segregate print routines
martin-gpy Sep 13, 2024
e05b4d2
netapp-smdevices: print single device output too
martin-gpy Sep 13, 2024
3cca590
nvme: use NVME_CTRL_FNA definitions
ikegami-t Sep 16, 2024
a7a9905
ocp: add support for hwcomp log page
ikegami-t Sep 16, 2024
52bf170
ocp: add hwcomp dummy definition
ikegami-t Aug 31, 2024
830f064
ocp: add hwcomp log command comp-id option
ikegami-t Aug 31, 2024
34a3269
ocp: add hwcomp log command list option
ikegami-t Aug 31, 2024
41d5722
ocp: add hwcomp log json output
ikegami-t Sep 1, 2024
0a88ebe
doc: add ocp hardware-component-log command
ikegami-t Sep 7, 2024
0c792f0
completions: add ocp hardware-component-log command
ikegami-t Sep 7, 2024
0a55607
ocp: split ocp-hwcomp log
ikegami-t Sep 16, 2024
8b6e87a
build: bump libnvme wrap
ikegami-t Sep 16, 2024
ace51b0
nvme: use NVME_CHECK() to check get features select field value
ikegami-t Sep 15, 2024
525cf1e
ocp: fix to set log data pointer allocated
ikegami-t Sep 18, 2024
2ab3e75
ocp: include util/types.h to use nvme_uint128_t
ikegami-t Sep 18, 2024
f64ecdb
plugins/solidigm: Added Workload Tracker Triggers and Wall Time
lgdacunh Sep 3, 2024
1950327
completion: add solidgm work-tracker binding
lgdacunh Sep 20, 2024
dd59efc
completion: add ocp set-telemetry-profile to zsh
lgdacunh Sep 20, 2024
3bf5bf7
nvme-print-stdout: use NVME_CTRL_OAES definitions
ikegami-t Sep 20, 2024
81a3a68
nvme: use NVME_GET_FEATURES_SEL definitions
ikegami-t Sep 15, 2024
49089e6
nvme: separate get NVME_GET_FEATURES_SEL_CHANGED definition
ikegami-t Sep 20, 2024
11907df
doc: add get-feature command changed option
ikegami-t Sep 20, 2024
2655980
completions: add get-feature command changed option
ikegami-t Sep 20, 2024
c1fa24b
nvme-print: fix error information log page endianness error
ikegami-t Sep 21, 2024
3ba0cf6
nvme: fix to convert metadata size to native byte order
ikegami-t Sep 22, 2024
de323e3
nvme: fix uninitialized value in error-log
martin-gpy Sep 22, 2024
c7ce9e9
nvme-print-stdout: update changed-ns-list-log output
martin-gpy Sep 24, 2024
b090be5
nvme-print-json: print CMBEBS and CMBSWTP in json format
francispravin5 Sep 25, 2024
803fba7
nvme-print-json: print controller register values in offset order
francispravin5 Sep 25, 2024
657f100
ocp: fix GUID output
Ted1642 Sep 27, 2024
fb752ba
nvme-print: print NSSES field of CAP register
francispravin5 Sep 30, 2024
3b12f40
build: use linux-nvme/ci-containers
igaw Oct 1, 2024
a30750e
wdc: add support for SNTMP drive
bpaupore-wdc Sep 30, 2024
bed5550
Documentation: Added solidigm plugin commands
lgdacunh Sep 18, 2024
2371a4f
ocp: fix option handling in internal-log
Ted1642 Sep 27, 2024
b4628c3
nvme: Support show-regs for nvmeof
hmi-jeon Oct 2, 2024
4cdd3f8
wdc: Add Support for SN5100S
jeff-lien-wdc Oct 2, 2024
f7f1923
nvme-print-json: update JSON verbose output for nvm-id-ctrl
martin-gpy Oct 3, 2024
8b6d4f2
ocp: Fixes for OCP 2.5 Telemetry DA1 FIFO Event Parsing
jeff-lien-wdc Aug 12, 2024
5644e61
wdc: Fix for Reading WDC C2 Vendor Unique Log Page
jeff-lien-wdc Oct 7, 2024
18f4b70
ocp-nvme: remove ocp log page version checking
sc108-lee Oct 7, 2024
a5f155c
ocp-nvme: Add LMDATA-37 for Latency Monitor Log
sc108-lee Oct 7, 2024
9465ffc
plugins/solidigm: Automatic retry smaller log chunk size.
lgdacunh Oct 1, 2024
8dfa127
plugins/sed: add sid password change
Aug 16, 2024
c83cad5
plugins/dapustor: smart-log-add fix
xyzhang-up Oct 9, 2024
0b03dc1
plugins/memblaze: fix a wrong id on smart-log-add
jinhuahuang2021 Oct 15, 2024
078d068
doc: show where self-test results can be found
paumr Oct 4, 2024
6dd1c58
nvme-print: print KV command set page header
laiaferrer Aug 23, 2024
cb1dc5c
ocp-nvme: ocp plugin version update
sc108-lee Oct 15, 2024
929f461
nvme-print-json: display only verbose output
martin-gpy Oct 17, 2024
3bf7503
ocp-print: move json code into separate files
ikegami-t Sep 19, 2024
6808b3b
plugins: update meson.build file to always build ocp plugin
ikegami-t Sep 20, 2024
4726bc2
ocp: split ocp-fw-activation-history print codes
ikegami-t Sep 27, 2024
7c35edb
ocp: split smart extended log print codes
ikegami-t Sep 29, 2024
882155d
ocp: move ocp telemetry log print function into ocp-print
ikegami-t Oct 6, 2024
133b670
ocp: split latency monitor log print codes
ikegami-t Oct 20, 2024
1a59edf
ocp: split unsupported requirement log print codes
ikegami-t Oct 20, 2024
74d0425
ocp: split error recovery log print codes
ikegami-t Oct 20, 2024
6e8d82f
ocp: split device capabilities log print codes
ikegami-t Oct 20, 2024
1ea7875
ocp: split telemetry string log print codes
ikegami-t Oct 6, 2024
c6749a2
ocp: split TCG configuration log print codes
ikegami-t Oct 6, 2024
95ead9e
ocp: build ocp-nvme.c and ocp-telemetry-decode.c without json
ikegami-t Oct 6, 2024
8dad0c5
ocp: fix ocp-nvme.c indentation errors
ikegami-t Oct 7, 2024
63548a8
ocp: fix ocp-print-stdout.c indentation error
ikegami-t Oct 7, 2024
5d96ed0
doc: added commit conventions to contribution guidelines
paumr Oct 21, 2024
bd808d2
ocp: remove callback function cast
ikegami-t Oct 24, 2024
ae00ebf
build: update libnvme wrap
francispravin5 Oct 24, 2024
bccdb63
nvme: add EMVS support to sanitize command
francispravin5 Oct 24, 2024
2ecd546
nvme-print-stdout: print VERS bit of SANICAP field
francispravin5 Oct 9, 2024
2dd2870
nvme: update tls_key() handling
martin-gpy Oct 16, 2024
f260a8d
ocp: combine to use GUID length definitions
ikegami-t Oct 25, 2024
e6d0d47
doc: Add sanitize command emvs option
francispravin5 Oct 25, 2024
818ce84
netapp-smdev: add err msg for no smdevices
martin-gpy Oct 27, 2024
df4b12b
netapp-ontapdev: add err msg for no ontapdevices
martin-gpy Oct 27, 2024
a4c5885
nvme-print: Add Sanitize Media Verification Event in PEL log
francispravin5 Oct 28, 2024
9a4625c
build: bump libnvme wrap
igaw Oct 24, 2024
97cee9d
nvme: use unsigned char for hmac and identity
igaw Oct 10, 2024
fbde909
fabrics: add support to connect to accept a configuration
igaw Oct 23, 2024
e25b775
fabrics: add support to connect to accept a PSK command line
igaw Oct 10, 2024
a3b2e44
docs: update TLS options
igaw Oct 23, 2024
682e97e
nvmf-keys: add udev rule to import tls keys
igaw Oct 24, 2024
dc5fec5
nvme: export tls keys honoring version and hmac
igaw Oct 24, 2024
e63d4ce
nvme: set file permission for keyfile to owner only
igaw Oct 24, 2024
6476860
nvme: rename identity to version
igaw Oct 24, 2024
ef8426f
nvme: add support to add derive TLS PSK to keyfile
igaw Oct 24, 2024
8b6097b
docs: update gen-tls-key arguments
igaw Oct 25, 2024
5572c90
tests: Use raw string for compiling regex
MaisenbacherD Oct 10, 2024
4cf3882
tests: fix nvme_attach_detach_ns_test
MaisenbacherD Oct 11, 2024
367de7f
tests: Fix nvme_copy_test python traceback fails
MaisenbacherD Oct 15, 2024
dd6a291
tests: Fixup nvme_create_max_ns_test
MaisenbacherD Oct 15, 2024
76bcbea
tests: Improve nvme_ctrl_reset_test
MaisenbacherD Oct 16, 2024
761ed9f
tests: Adjust ncap and nsze for nvme_format_test
MaisenbacherD Oct 16, 2024
3b1188b
tests: Fix nvme_get_features_test
MaisenbacherD Oct 16, 2024
40f4447
tests: Use correct flag in vendor specific id-ctrl
MaisenbacherD Oct 17, 2024
a54f98b
tests: Fix nvme_smart_log_test
MaisenbacherD Oct 17, 2024
d9a61c2
tests: Add feature check to nvme_compare_test
MaisenbacherD Oct 17, 2024
67bd20e
tests: Fix nvme_get_lba_status_test and nvme_lba_status_log_test
MaisenbacherD Oct 17, 2024
eb33dbb
tests: Create default ns on tearDown
MaisenbacherD Oct 25, 2024
01abe63
CI: Add workflow for running tests on real nvme device
MaisenbacherD Sep 25, 2024
a8e8ef5
ocp: fix firmware activation history entry endian
ikegami-t Oct 28, 2024
a581495
ocp: fix TCG configuration log endian
ikegami-t Oct 28, 2024
6547653
ocp: fix latency monitoring data structure entry endian
ikegami-t Oct 28, 2024
68cbe62
docs: nvme-id-doman: dom{ia => ai}n
nabijaczleweli Oct 29, 2024
3ed82e8
nvme: return correct error code in append_keyfile
igaw Oct 30, 2024
5604741
nvme: add support to append TLS PSK to keyfile for check-tls-key
igaw Oct 30, 2024
39b1db8
docs: update check-tls-key arguments
igaw Oct 30, 2024
b219324
build: bump libnvme wrap
igaw Oct 31, 2024
afa17e7
scripts: handle libnvme version update correctly
igaw Oct 31, 2024
925545b
doc: Regenerate all docs for v2.11
igaw Oct 31, 2024
9f34fcb
Release v2.11
igaw Oct 31, 2024
64b2a25
build: Add token for coverage test
MaisenbacherD Oct 31, 2024
10e3119
wdc: Fixes for SNTMP Capabilities
jeff-lien-wdc Nov 5, 2024
1425179
nvme-print: use NVME_GET in sanitize log
francispravin5 Nov 7, 2024
5df679d
plugins/amzn: add stats support
Nov 7, 2024
b96cd2d
docs: add howto to setup TLS connections
igaw Oct 30, 2024
9444ce0
nvme-print: add fallback for non-standard locale category
dne Nov 11, 2024
ac48189
plugins/netapp: add include of libgen.h for basename(3) prototype
dne Nov 11, 2024
ab841e9
netapp-ontapdev: add verbose output
martin-gpy Nov 11, 2024
a8d1efc
netapp-ontapdev-doc: add verbose details
martin-gpy Nov 12, 2024
454893a
ocp-nvme: Recommit removed patch
sc108-lee Nov 12, 2024
d81cd5e
opc: fix hardware component descriptions bytes number
ikegami-t Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 11 additions & 5 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ jobs:
name: build AppImage
runs-on: ubuntu-latest
container:
image: ghcr.io/igaw/linux-nvme/debian:latest
image: ghcr.io/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: fixup permissions
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
run: |
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
- name: build
run: |
scripts/build.sh appimage
Expand All @@ -36,11 +43,10 @@ jobs:
needs: build-appimage
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'linux-nvme/nvme-cli' }}
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v6
- uses: actions/download-artifact@v4
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
name: AppImage
path: AppImage
- name: FTP Deployer
uses: sand4rt/[email protected]
with:
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
compiler: [gcc, clang]
buildtype: [debug, release]
container:
image: ghcr.io/igaw/linux-nvme/debian.python:latest
image: ghcr.io/linux-nvme/debian.python:latest
steps:
- uses: actions/checkout@v4
- name: build
Expand All @@ -43,10 +43,16 @@ jobs:
- uses: actions/checkout@v4
- name: enable foreign arch
uses: dbhi/qus/action@main
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: compile and run unit tests
uses: mosteo-actions/docker-run@v1
uses: mosteo-actions/docker-run@v2
with:
image: ghcr.io/igaw/linux-nvme/ubuntu-cross-${{ matrix.arch }}:latest
image: ghcr.io/linux-nvme/ubuntu-cross-${{ matrix.arch }}:latest
guest-dir: /build
host-dir: ${{ github.workspace }}
command: |
Expand All @@ -65,7 +71,7 @@ jobs:
name: fallback shared libraries
runs-on: ubuntu-latest
container:
image: ghcr.io/igaw/linux-nvme/debian:latest
image: ghcr.io/linux-nvme/debian:latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
Expand All @@ -83,7 +89,7 @@ jobs:
name: muon minimal static
runs-on: ubuntu-latest
container:
image: ghcr.io/igaw/linux-nvme/debian:latest
image: ghcr.io/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
- name: build
Expand All @@ -94,7 +100,7 @@ jobs:
name: make static
runs-on: ubuntu-latest
container:
image: ghcr.io/igaw/linux-nvme/debian:latest
image: ghcr.io/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
- name: build
Expand All @@ -105,7 +111,7 @@ jobs:
name: build libnvme and nvme-cli separately
runs-on: ubuntu-latest
container:
image: ghcr.io/igaw/linux-nvme/debian:latest
image: ghcr.io/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
- name: build
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ jobs:
name: code coverage
runs-on: ubuntu-latest
container:
image: ghcr.io/igaw/linux-nvme/debian.python:latest
image: ghcr.io/linux-nvme/debian.python:latest
steps:
- uses: actions/checkout@v4
- name: build
run: |
scripts/build.sh coverage
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
26 changes: 26 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: docs

on:
push:
branches: [master]
paths:
- Documentation/**
pull_request:
branches: [master]
paths:
- Documentation/**

workflow_dispatch:

jobs:
build-docs:
name: build documentation
runs-on: ubuntu-latest
container:
image: ghcr.io/linux-nvme/debian:latest
steps:
- uses: actions/checkout@v4
- name: build
run: |
scripts/build.sh docs
93 changes: 93 additions & 0 deletions .github/workflows/run-nightly-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
name: run-nightly-tests

on:
workflow_dispatch:
schedule:
- cron: '0 01 * * *'

jobs:
nightly-tests:
runs-on: nvme-nvm
steps:
- name: Output kernel version
run: |
uname -a
- name: Clean up test device
run: |
#BDEV0 is an environment variable of the self-hosted runner instance
#that contains a valid nvme ctrl name which is capable of the nvm
#command set.
CONTROLLER=$(echo /dev/${BDEV0} | sed 's/n[0-9]*$//')
sudo nvme delete-ns $CONTROLLER -n 0xffffffff
sudo nvme format $CONTROLLER -n 0xffffffff -l 0 -f
SIZE=$(sudo nvme id-ctrl $CONTROLLER --output-format=json | jq -r '{tnvmcap} | .[]' | awk '{print $1/512}')
sudo nvme create-ns -s $SIZE -c $SIZE -f 0 -d 0 --csi=0 $CONTROLLER
sudo nvme attach-ns $CONTROLLER -n 1 -c 0
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
meson gcc pkg-config git libjson-c-dev libssl-dev libkeyutils-dev \
libdbus-1-dev libpython3-dev pipx python3-dev swig xz-utils
pipx ensurepath
sudo PIPX_BIN_DIR=/usr/local/bin pipx install nose2
sudo PIPX_BIN_DIR=/usr/local/bin pipx install flake8
sudo PIPX_BIN_DIR=/usr/local/bin pipx install mypy
sudo PIPX_BIN_DIR=/usr/local/bin pipx install autopep8
sudo PIPX_BIN_DIR=/usr/local/bin pipx install isort
- name: Build and install nvme-cli
run: |
scripts/build.sh -b release -c gcc
sudo meson install -C .build-ci
sudo ldconfig /usr/local/lib64
- name: Overwrite test config
run: |
CONTROLLER=$(echo /dev/${BDEV0} | sed 's/n[0-9]*$//')
cat > tests/config.json << EOF
{
"controller" : "$CONTROLLER",
"ns1": "/dev/${BDEV0}",
"log_dir": "tests/nvmetests/"
}
EOF
- name: Run on device tests
run: |
sudo nose2 --verbose --start-dir tests \
nvme_attach_detach_ns_test \
nvme_compare_test \
nvme_copy_test \
nvme_create_max_ns_test \
nvme_ctrl_reset_test \
nvme_dsm_test \
nvme_error_log_test \
nvme_flush_test \
nvme_format_test \
nvme_fw_log_test \
nvme_get_features_test \
nvme_get_lba_status_test \
nvme_id_ctrl_test \
nvme_id_ns_test \
nvme_lba_status_log_test \
nvme_read_write_test \
nvme_smart_log_test \
nvme_verify_test \
nvme_writeuncor_test \
nvme_writezeros_test
- name: Upload logs
uses: actions/upload-artifact@v4
if: always()
with:
name: logs files
path: |
./tests/nvmetests/**/*.log
- name: Clean up test device
if: always()
run: |
CONTROLLER=$(echo /dev/${BDEV0} | sed 's/n[0-9]*$//')
sudo nvme delete-ns $CONTROLLER -n 0xffffffff
sudo nvme format $CONTROLLER -n 0xffffffff -l 0 -f
SIZE=$(sudo nvme id-ctrl $CONTROLLER --output-format=json | jq -r '{tnvmcap} | .[]' | awk '{print $1/512}')
sudo nvme create-ns -s $SIZE -c $SIZE -f 0 -d 0 --csi=0 $CONTROLLER
sudo nvme attach-ns $CONTROLLER -n 1 -c 0
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,28 @@ Please feel free to use the github forums to ask for comments & questions on
your code before submitting a pull request. The NVMe CLI project uses the
common *fork and merge* workflow used by most GitHub-hosted projects.

#### Commit conventions

The project follows the Linux kernel mailing list workflow,
thus commit messages should be structured like this:
```
<feature|plugin|subject>: <commit message>

<description of the feature>

Signed-off-by: My Name/alias <[email protected]>
```

Example:

```
doc: added commit conventions to contribution guidelines

Show new contributors the project's commit guidelines

Signed-off-by: John Doe <[email protected]>
```

### Bug Reports

Bugs for the NVM Library project are tracked in our [GitHub Issues Database](https://github.com/linux-nvme/nvme-cli/issues).
6 changes: 6 additions & 0 deletions Documentation/cmd-plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ linknvme:nvme-micron-smart-add-log[1]::
linknvme:nvme-micron-temperature-stats[1]::
Retrieves temperature information of given micron device

linknvme:nvme-ocp-internal-log[1]::
Retrieves and parses OCP Telemetry DA1 and DA2 logs.

linknvme:nvme-netapp-ontapdevices[1]::
Display information about ONTAP devices

Expand Down Expand Up @@ -201,3 +204,6 @@ linknvme:nvme-zns-zrwa-flush-zone[1]::

linknvme:nvme-inspur-nvme-vendor-log[1]::
NVMe Inspur Device Vendor log page request

linknvme:nvme-dapustor-smart-log-add[1]::
NVMe DapuStor Additional SMART log page
Loading