]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Fix set feature command to get feature identifier 0Dh length as zero
authorTokunori Ikegami <ikegami.t@gmail.com>
Thu, 13 Oct 2022 16:13:22 +0000 (01:13 +0900)
committerDaniel Wagner <dwagner@suse.de>
Mon, 24 Oct 2022 14:41:58 +0000 (16:41 +0200)
commit7e275bf7eebb1b9175a697b62aac7f2e5872e9de
treee1c50b88e7924569738965f07eb1c1333fa71856
parentcc5bd7a3dca9cabb31beae05e3ab9e61da239fb4
nvme: Fix set feature command to get feature identifier 0Dh length as zero

The nvme_get_feature_length() function does not handle the direction
information correctly. Thus libnvme introduced a new version of this
function. Use it when available.

Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
[dwagner: Add wrapper code when nvme_get_feature_length2
          is not available]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
libnvme-wrap.c
nvme-wrap.c
nvme-wrap.h
nvme.c