Commit Graph

32 Commits

Author SHA256 Message Date
Daniel Wagner
168fab67d5 Accepting request 1134607 from openSUSE:Factory
Resubmit upgrade, which was reverted in Factory

OBS-URL: https://build.opensuse.org/request/show/1134607
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=53
2023-12-22 12:03:47 +00:00
OBS User buildservice-autocommit
db7584163f Updating link to change in openSUSE:Factory/libnvme revision 26
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=b8a6d5acd16c360aea452894c0cf7525
2023-12-21 22:38:04 +00:00
Daniel Wagner
ad1ce60a0b Accepting request 1134173 from home:wagi:branches:Base:System
- Update to version 1.7.1+0.g13ba383:
  * tree: do no free ns on error in nvme_ns_init

- Update to version 1.7+0.gf38b1d7:
  * tree: do not open blk device on default
  * tree: read all attributes from sysfs when available
  * ioctl: set data length when retrieving LBA status
  * types: fix regression for vendor-specific field in nvme_id_ns
  * util: use cleanup functions
  * linux: use cleanup functions
  * json: use cleanup functions
  * fabrics: use cleanup functions
  * tree: use cleanup functions
  * cleanup: add cleanup functions
  * tree: fix incorrect return value
  * tree: Fix clearing application strings
  * libnvme: reshuffle nvme_generate_tls_key_identity()
  * libnvme: fixup error codes
  * libnvme: Implement 'nvme_generate_tls_key_identity()'
  * libnvme: support NVMe TLS identities version 1
  * libnvme: Add base64 functions
  * libnvme: separate out 'gen_tls_identity' and reshuffle 'derive_nvme_keys'
  * libnvme: separate out a function 'select_hmac'
  * libnvme: fix a memory leak when calling read_ssns()
  * libnvme: fix a memory leak in read_discovery()
  * fabrics: avoid redundant args in nvme_discovery_log()
  * fabrics: have nvmf_get_discovery_log() call nvmf_get_discovery_wargs()
  * fabrics: fetch smaller Discovery Log Page header
  * fabrics: avoid redundant Get Log Page on retry
  * fabrics: clear RAE for discovery log page commands

OBS-URL: https://build.opensuse.org/request/show/1134173
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=51
2023-12-20 10:19:58 +00:00
Lee Duncan
9d6075fe25 Accepting request 1118363 from home:mwilck:branches:Base:System
- Update to version 1.6+5.g68c6ffb:
  * avoid stack corruption by unaligned DMA to user space buffers
    (bsc#1216344, gh#linux-nvme/libnvme#727)

OBS-URL: https://build.opensuse.org/request/show/1118363
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=49
2023-10-18 20:28:49 +00:00
Daniel Wagner
c215e1c443 Accepting request 1116605 from home:wagi:branches:Base:System
- Use glob for python3-libnvme file listening. Workaround pycache_only
  problems for SLE/Leap builds.
- Drop usused libuuid dependency

- Update to version 1.6: (jsc#PED-3610 jsc#PED-4879 jsc#PED-5061)
  * tree: fix segfault in nvme_scan_subsystem() (bsc#1213993)
  * src/nvme/tree.c: make __nvme_scan_subsystem() returning bool (bsc#1213993)
  * nvme-tree: avoid warning in 'list-subsys' (bsc#1212598)
  * tree: Add getter for subsystem iopolicy (bsc#1124564)
  * tree: Scan all subsystems (bsc#1212598)
    (bsc#1213527 bsc#1213686)
  * ioctl: fix RAE bit on last Get Log Page command (bsc#1213618)
  * fabrics: check genctr after getting discovery entries (bsc#1213618)
- Enabled unit test on s390x again (bsc#1207687, bsc#1207686)
- Fix invalid string lenght calculcation for UUID (bsc#1209906)
- Fix segmentation fault during garbage collection (bsc#1209905)
- Always sanitize traddr and trsvcid entries (bsc#1207435)
- Allow tracking unique discover controllers (bsc#1186689)

- temporarily disable unit tests on s390x (bsc#1207687, bsc#1207686)
  * tree: Factor lookup code for controller (bsc#1199503)
  * fabrics: Consider config from file when adding new controller (bsc#1199503)
  * fabrics: Lower log level in __nvmf_add_ctrl (bsc#1199994 bsc#1199503)
  * fabrics: Remove double connection error logging (bsc#1199994 bsc#1199503)
  * Fixes for controller authentication (bsc#1201501 bsc#1201700 bsc#1201701 bsc#1201717)

OBS-URL: https://build.opensuse.org/request/show/1116605
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=45
2023-10-10 07:41:36 +00:00
Daniel Wagner
0662d4a9b7 Accepting request 1115640 from home:wagi:branches:Base:System
- Enable tests during build
- Set git version tag
- Drop unused make dependency

OBS-URL: https://build.opensuse.org/request/show/1115640
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=43
2023-10-04 14:36:14 +00:00
Daniel Wagner
86b8094118 Accepting request 1115575 from home:wagi:branches:Base:System
- Drop unencessary minimum version depedency on meson.
- Re-enable libdbus feature. Upstream defaults changed.

OBS-URL: https://build.opensuse.org/request/show/1115575
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=42
2023-10-04 10:40:56 +00:00
Daniel Wagner
f0a832ba71 Accepting request 1114408 from home:wagi:branches:Base:System
- Update to version 1.6:
  * docs: Fix Read-the-Docs configuration (deprecated config param)
  * mi-mctp: Fix free() in error path of mi_open_mctp
  * types: Use NVME_SET for status type mask to get status value
  * types: Define FLBAS MASK and SHIFT to use NVME_GET
  * types: Support Phy Rx Eye Opening Measurement Log
  * log: Add nvme root global variable to set for default output
  * types: Add support for the OAQD ID controller field
  * test: use non deprecated API
  * test: add tests for Get/Set Features functions
  * ioctl: implement nvme_set_features_lba_range()
  * ioctl: pass NSID in Get/Set Features commands that use it
  * ioctl: fix swapped parameters in nvme_set_features_host_id()
  * ioctl: export nvme_{g,s}et_features_iocs_profile()
  * ioctl: pass ENDGID in nvme_get_features_endurance_event_cfg()
  * ioctl: don't set SAVE bit on unsaveable features
  * ioctl: avoid sending uninitialized timestamp
  * ioctl: pass data for Get/Set Features commands
  * ioctl: set correct bits in Set Features commands
  * ioctl: correct feature IDs in Get/Set Features commands
  * tree: Add 2 new public functions to lookup existing controllers
  * ioctl: Add debugging feature to show command outputs
  * Fix incorrect article 'an' as 'a' to use for a description
  * linux: Added functions to enable faster telemetry data retrieval. Moved telemetry data area support detection into separate function. Added possibility to modify data transfer chunk size. Enable telemetry extraction up to specified data area. Removed some printf() and perror().
  * test: account for discovery log page entry stripping
  * fabrics: unconditionally strip discovery entry strings
  * fabrics: only look for spaces in strchomp()
  * tree: Use early return instead of else statements
  * test: fix lookup test case
  * test: make all function static

OBS-URL: https://build.opensuse.org/request/show/1114408
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=40
2023-09-29 16:19:18 +00:00
Ana Guerrero
120b5fed0e Accepting request 1101078 from home:anag:branches:Base:System
Fix build with meson 1.2.0 for reverted package

OBS-URL: https://build.opensuse.org/request/show/1101078
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=38
2023-07-27 13:33:29 +00:00
OBS User buildservice-autocommit
38d57886ed Updating link to change in openSUSE:Factory/libnvme revision 18
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=76766d9664e151b0393db6522529caaf
2023-07-27 12:13:24 +00:00
Daniel Wagner
87478ddc0e Accepting request 1099914 from home:wagi:branches:Base:System
- Label __pycache__ directory because meson 1.2.0 starts to install
  the precompiled files.

OBS-URL: https://build.opensuse.org/request/show/1099914
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=36
2023-07-21 13:07:09 +00:00
Daniel Wagner
3a342953a8 Accepting request 1098394 from home:wagi:branches:Base:System
OBS-URL: https://build.opensuse.org/request/show/1098394
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=35
2023-07-12 16:09:51 +00:00
Daniel Wagner
ed40e04f90 Accepting request 1076523 from home:wagi:branches:Base:System
- Update to version 1.4:
  * fabrics: Filter out invalid UUIDs from DMI
  * fabrics: Add define for DMI sysinfo
  * Print out correct TREQ strings for discovery
  * tree: fix generic device open failure
  * fabrics: add configuration option 'tls_key'
  * fabrics: add configuration option 'keyring'
  * linux: add key helper functions
  * nvme: add 'nvme_insert_tls_key()' function
  * linux: add nvme_lookup_keyring()
  * python: Change python option from combo to feature
  * types: add opcode field to error log page (TP4113)
  * python: Add setter property for controller DHCHAP Key
  * python: Remove redundant host.set_key() method
  * build, meson: Print option summary
  * Python: Add support for setting/getting Host DHCHAP key
  * Python: Add hostnqn_from_file() and hostid_from_file()
  * types: Update position of elbatm in struct nvme_copy_range{_f1}
  * doc: fix kernel-doc-check warning
  * python, meson: Assert that deps are present for -Dpython=true
  * python: Reformat SWIG input file
  * python test: Check there is no SIGSEGV during garbage collection
  * python: Return PyObject* from __str__() instead of a static char[]
  * python: Fix segmentation fault during garbage collection
  * build: Enable test in muon minimal build
  * build: Streamline workflows with nvme-cli
  * mi: Add nvme_mi_admin_get_log_page
  * ioctl: Set file descriptor in nvme_get_log_page()
  * fix endians
  * fabrics: Do not ignore one char whitespace when string sanitizing

OBS-URL: https://build.opensuse.org/request/show/1076523
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=33
2023-03-31 16:01:20 +00:00
Daniel Wagner
ba23671b6b Accepting request 1062067 from home:wagi:branches:Base:System
- Update to version 1.3:
 * Support added for Flexible Data Placement (TP4146)
 * Fabrics: added support for Persistent Discovery Controllers.
 * libnvme-mi added a quirk framework to workaround special behavior of
   certain devices
 * The python binding behaves more friendly in a threading environment
   by release the GIL on blocking calls.
 * Replaced  3the libsystemd dependency with libdbus
 * A lot of small fixes everywhere (leaks, wrong ordering of arguments, ...)
- Update spec file
  * Project depends on meson >= 0.50.0

OBS-URL: https://build.opensuse.org/request/show/1062067
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=31
2023-01-30 14:36:03 +00:00
Daniel Wagner
b0820117a5 Accepting request 1033045 from home:wagi:branches:Base:System
- Update to version 1.2:
  * Add more details for return code of MI admin cmds
  * Parse dhchap_host_key on controller level
  * Update json config schema for missing dhchap host key
  * fabrics: Add new TP8010 definitions
  * fabrics: Add nvmf_get_discovery_wargs()
  * fabrics: Duplicate strings when merging configs
  * fabrics: Filter out empty strings in add_argument()
  * fabrics: Use fallthrough statement
  * ioctl: Set log page offset for nvme_get_log_telemetry_host
  * json-schema: add dhchap_key details to host section
  * json: Enforce correctly formatted JSON config files
  * json: Verify JSON config file starts with an array
  * mi: Add Get Log Page helpers
  * mi: Add Identify function for secondary controller list
  * mi: Add Identify helper for ns-descs and primary-ctrl-caps
  * mi: Add firmware download and commit commands
  * mi: Add identify helper for nsid-capable Controller List
  * mi: Add identify helpers for namespace lists
  * mi: Add identify helpers for namespaces
  * mi: Allow Admin-message sized More Processing Required responses
  * mi: Distinguish MI status from NVMe (CDW3) status
  * mi: Fix C++ compiler errors
  * mi: Implement Format NVM command
  * mi: Implement Get & Set Features Admin commands
  * mi: Implement NS attach command and helpers
  * mi: Implement Namespace Management command and create/delete helpers
  * mi: Implement Sanitize command
  * mi: Init ctrl_id within xfer
  * mi: Introduce a helper for response status, unify values with ioctls
  * mi: Set log page offset for nvme_get_log_telemetry_host
  * mi: add nvme_mi_status_to_string()
  * mi: fix a memory leak in nvme_mi_open_mctp()
  * mi: fix get_log_page chunked offset check
  * nvme-tree: avoid segfault if auth keys are unavailable
  * python: Use nvmf_get_discovery_wargs()
  * tree: rename controller 'dhchap_key' to 'dhchap_ctrl_key'
  * types: Move enum nvme_data_tfr to types
  * util: Add LINE_MAX define
  * util: Add get feature length 2 API to support direction parameter
  * util: Add simple UUID type
  * util: Do not expose fallthrough defines
- Make man page build conditiional. Install man page location has been
  fixed upstream.
- Mark the Python directory own by the libnvme3-python package

OBS-URL: https://build.opensuse.org/request/show/1033045
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=29
2022-11-03 11:32:15 +00:00
Daniel Wagner
a223f49c60 Accepting request 1032570 from home:bmwiedemann:branches:Base:System
Use fixed manpage build date (boo#1047218)

OBS-URL: https://build.opensuse.org/request/show/1032570
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=28
2022-11-02 07:16:54 +00:00
Daniel Wagner
d947f235f9 Accepting request 999339 from home:kukuk:branches:Base:System
- Fix installation of manual pages to make them accessible

OBS-URL: https://build.opensuse.org/request/show/999339
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=26
2022-08-30 14:00:12 +00:00
Daniel Wagner
f72869a105 Accepting request 992385 from home:dirkmueller:Factory
- Update to version 1.1:
  * Regenerate all documentation
  * json: fixup dhchap_ctrl_key definitions
  * fabrics: Fix build_options() return values
  * fabrics: sanitize dump-config output
  * Fix poll.h includes
  * build: Drop -nostdinc for LibreSSL header checks
  * ioctl: Honor rae in nvme_get_nsid_log
  * build: Add support to build against LibreSSL
  * rpmbuild: Enable 'make rpm' to build rpm pkgs #408
  * mi: unify MI Get Log Page function with ioctl API
  * python: add missing ctrl attrs to Python bindings
  * mi-mctp: Add timeout support to MCTP transport
  * mi: Add maximum More Processing Required limit API
  * mi: Add endpoint get/set timeout API

OBS-URL: https://build.opensuse.org/request/show/992385
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=24
2022-08-03 07:14:41 +00:00
Daniel Wagner
8e53790b74 Accepting request 989204 from home:wagi:branches:Base:System
- Update to version v1.1-rc0:
  * update/cleanup of documentation
  * various build fixes
  * various fixes reported by coverity
  * 64-bit Reference Tags and TP-4068 changes
  * libnvme-mi: Introduce NVMe Managament Interface library

OBS-URL: https://build.opensuse.org/request/show/989204
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=22
2022-07-14 15:26:26 +00:00
Daniel Wagner
550d41faa2 Accepting request 967887 from home:wagi:branches:Base:System
- Update to version 1.0:
  * tree: Remove default port setting for TCP and RDMA ports
  * tree: add 'f_args' argument to pass user data to the filter function
  * tree: remove 'ctrl_get_ana_state()'
  * tree: add namespace path iterators
  * tree: filter out namespaces
  * tree: update nvme_scan_filter_t usage

OBS-URL: https://build.opensuse.org/request/show/967887
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=20
2022-04-08 17:20:51 +00:00
Daniel Wagner
7b866e3bf7 Accepting request 966437 from home:wagi:branches:Base:System
- Update to version 1.0-rc8:
  * types: Add support for get log - MI Command Supported
  * types: Add new Identify constant
  * types: Update persistent event entry struct added new fields
  * types: Add Host Initiated Data Gen Number to telemetry log struct
  * tree: always allocate config file in nvme_read_config()
  * tree: rework nvme_scan_subsystem()
  * tree: make subsystem name mandatory in nvme_scan_ctrl()
  * tree: move nvme_init_subsystem() into nvme_lookup_subsystem()
  * tree: do not return error when filtering out subsystems
  * tree: add debugging messages during scanning
  * tree: Handle NULL subsysname in nvme_scan_ctrl()
  * tree: Fix subsystem initialization in nvme_scan_ctrl()
  * tree: Fix leaking 'name' in nvme_subsystem_lookup_namespace()
  * tree: Avoid dereferencing nvme_subsystem_t before its check for NULL
  * tree: Clarify NULL return values from nvme_get_attr()
  * fabrics: Invoke nvmf_dim() with provided tas argument
  * fabrics: add 'nvmf_update_config()'
  * fabrics: Avoid out of bounds string chomping
  * fabrics: Free old traddr in nvmf_add_ctrl
  * fabrics: update log level for write failures
  * fabrics: Streamlining documentation
  * fabrics: Fix leaking ctrl in nvmf_connect_disc_entry()
  * fabrics: Add missing break in a switch
  * ioctl: Remove attribute packed and alignedof for args structs
  * ioctl: Align arguments indentation with braces
  * json: fix endless loop scanning for controllers
  * Remove nvme_init_id_ns
  * Add lbstm support for create-ns
  * documentation updates

OBS-URL: https://build.opensuse.org/request/show/966437
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=18
2022-04-01 13:45:07 +00:00
Daniel Wagner
268e9face7 Accepting request 962942 from home:wagi:branches:Base:System
- Update to version 1.0-rc7:
  * linux: fixup log page offset in nvme_get_log_page()
  * tree: Add support for default trsvcid for all controllers (bsc#1195858)
  * tree: fixup coredump during nvme discover

OBS-URL: https://build.opensuse.org/request/show/962942
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=16
2022-03-18 19:45:45 +00:00
Daniel Wagner
4996ba8c60 - Update to version 1.0-rc6:
* tree: add nvme_ctrl_get_ana_state()
  * tree: link paths to namespaces in nvme_subsystem_scan_namespace()
  * ioctl.h: ns list bug fix (wrong cns value)
  * types.h: Key Value Command Set Identifier added (NVME_CSI_KV)
  * types: fix status code type bug (wrong masking)

OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=13
2022-03-11 18:00:39 +00:00
Daniel Wagner
22be280129 - Update License information. The library is released under
LGPL-2.1-or-later and not LGPL-2.1-only.

OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=11
2022-03-08 09:31:35 +00:00
Daniel Wagner
ed72b91977 Accepting request 959371 from home:wagi:branches:Base:System
- Update to version 1.0-rc5:
  * ioctl: Set lsp to action in nvme_get_log_persistent_event (bsc#1196121)
  * tree: Ignore traddr case in nvme_lookup_ctrl() (bsc#1194025)
  * fabrics: Do not swap bytes for system uuid (bsc#1196565)
  * documentation updates

OBS-URL: https://build.opensuse.org/request/show/959371
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=9
2022-03-04 10:41:17 +00:00
Daniel Wagner
367e180c00 Accepting request 956832 from home:wagi:branches:Base:System
- Update to version 1.0-rc4:
  * fabrics: add default port number for NVMe/TCP I/O controllers
  * linux: Update size when telemetry controller initiated data is unavailable
  * add cdw13 for set_feature_args structure
  * Add support for TP8010
  * Documentation cleanups

OBS-URL: https://build.opensuse.org/request/show/956832
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=8
2022-02-22 17:52:56 +00:00
Daniel Wagner
30378f393f Accepting request 953753 from home:wagi:branches:Base:System
- Update to version v1.0-rc3:
  * Properly create manuals/documentation
  * Fix memleaks in __nvme_free_ns() and nvme_scan_subsystem()
  * nvme: get log domain id included in Log Specific Identifier
  * nvme: Add nulbaf(Number of Unique Capability LBA Formats) field on nvmd_id_ns
  * ioctl: Add identify ioctl for CNS 09h, 0Ah
  * nvme: Add Enhanced Controller Meta Data(FID: 0x7D)
  * nvme: Add Supported Capacity Configuration List log page(LID: 0x11)
  * tree: do not set dhchap_key to 'none'
  * tree: restart controller lookup
  * tree: fixup memory leak in nvme_scan_ctrl()
  * Rename nvme_path_get_subsystem()
  * Remove nvme_reset_topology()
- Use precompiled documentation instead regenerating it

OBS-URL: https://build.opensuse.org/request/show/953753
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=7
2022-02-11 14:40:28 +00:00
Daniel Wagner
d87677c0be Accepting request 950641 from home:wagi:branches:Base:System
- Update to version 1.0~2:
  * Add fabrics config option 'tls'
  * Logging infrastructure reworked (API break)
  * Changed argument structs layout (API break)
  * Changed scan API (API break)
  * Fixed ctrl_loss_tmo handling concerning values of '-1'
  * Various build fixes

OBS-URL: https://build.opensuse.org/request/show/950641
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=6
2022-02-02 06:30:37 +00:00
Daniel Wagner
7c317767fa Accepting request 947388 from home:wagi
- Remove Provide for python package.
- Remove explicit tar file name for setup step.

OBS-URL: https://build.opensuse.org/request/show/947388
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=4
2022-01-19 11:17:34 +00:00
Daniel Wagner
4b5a71b0d0 Accepting request 947238 from home:wagi
- Use osc_scm to manage upstream input source.

OBS-URL: https://build.opensuse.org/request/show/947238
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=3
2022-01-18 14:34:33 +00:00
Daniel Wagner
a5accb9e29 Accepting request 947219 from home:wagi
- Fix Source URL

OBS-URL: https://build.opensuse.org/request/show/947219
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=2
2022-01-18 12:59:04 +00:00
Andreas Jaeger
43e5d05830 Accepting request 947205 from home:wagi
I want to maintain libnvme in Factory and would like to use Base:System as the devel/feeder project. nvme-cli 2.x depends on libnvme 1.x

OBS-URL: https://build.opensuse.org/request/show/947205
OBS-URL: https://build.opensuse.org/package/show/Base:System/libnvme?expand=0&rev=1
2022-01-18 11:42:11 +00:00