]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: output also libnvme version
authorDaniel Wagner <dwagner@suse.de>
Wed, 13 Apr 2022 19:31:02 +0000 (21:31 +0200)
committerDaniel Wagner <dwagner@suse.de>
Thu, 14 Apr 2022 08:58:32 +0000 (10:58 +0200)
commit1fde82bbd3c0973f9c073ee4fb2c42345eff394e
tree2eb97b5151bcec7fac7008529b5e97d2f0fd8298
parent1f54f1536bbd1c21c74c826cea66f48287cb75db
nvme: output also libnvme version

Print the used libnvme version which the nvme-cli fronent is using.

In order to be backward compatible don't expect that the newly
introduce function in libnvme to be 1available.

This is done by providing a weak symbol which is overwritten when
statically build or when libnvme is is used as shared libray the
dlsym() call checks if the function is available.

  $ nvme --version
  nvme version 2.0 (git 2.0-2-g037372a+)
  libnvme version 1.0 (git 1.0-2-gfb628fe)

Signed-off-by: Daniel Wagner <dwagner@suse.de>
meson.build
plugin.c
wrapper.c [new file with mode: 0644]