]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: use available Identify helper functions
authorCaleb Sander <csander@purestorage.com>
Sat, 12 Aug 2023 20:50:03 +0000 (14:50 -0600)
committerDaniel Wagner <wagi@monom.org>
Thu, 17 Aug 2023 12:56:12 +0000 (14:56 +0200)
commit939c95af14303e410b5c736d9c50b9805b9b3def
treeb068f82d8f570b0f4637156486603acebbf067bc
parentb21ad1f350db19982f1b53c0150fd70b31a208cd
ioctl: use available Identify helper functions

nvme_identify_independent_identify_ns() only specifies a CNS and a NSID,
so have it just call nvme_identify_cns_nsid()
instead of duplicating most of its implementation.
Similarly, nvme_zns_identify_ns() is just nvme_identify_ns_csi()
with the CSI set to ZNS and no UUID index.

Signed-off-by: Caleb Sander <csander@purestorage.com>
src/nvme/ioctl.h