]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: Skip properties that are not supported
authorBart Van Assche <bvanassche@acm.org>
Wed, 19 Jun 2019 17:09:54 +0000 (10:09 -0700)
committerBart Van Assche <bvanassche@acm.org>
Wed, 19 Jun 2019 17:28:15 +0000 (10:28 -0700)
commit14ef3681c6a505efff6d4efcb1d94a6531276a57
tree074e3dd93d9ae3f5c5546346b8910fbeaf6fd91d
parent301e263c34e83115c188f19cac5683747756f4c4
nvme-cli: Skip properties that are not supported

Instead of causing the show-regs command to fail if a property is
encountered that is not supported by the target side, do not display
the property. With this patch applied the following output is displayed
for the Linux NVMf target:

$ nvme show-regs /dev/nvme0
cap     : f0003ff
version : 10300
cc      : 460001
csts    : 1

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
nvme-ioctl.c