]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: use argconfig_parse_seen to check conditions
authorzhangxiaoyuan <zhangxiaoyuan@dapustor.com>
Fri, 19 Jul 2024 10:23:44 +0000 (18:23 +0800)
committerDaniel Wagner <wagi@monom.org>
Fri, 19 Jul 2024 15:08:45 +0000 (17:08 +0200)
commit0979f22fb7ec57f5c32a275a6e60c4ab90a2f563
treeb6c6c33fbf0346251d7a43d04aaafe7f01fb730f
parentede9a5f87b57d67e92226eca1273abb657ebe6a4
nvme: use argconfig_parse_seen to check conditions

The value of NVME_FEAT_FID_TIMESTAMP cannot be set
to 0 through 'set-feature /dev/nvmeX -f 0xe -v 0'.
using argconfig_parse_seen() can fix this issue.

Signed-off-by: Xiaoyuan Zhang <zhxiaoy@outlook.com>
nvme.c