]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: pass NSID in Get/Set Features commands that use it
authorCaleb Sander <csander@purestorage.com>
Fri, 15 Sep 2023 19:20:19 +0000 (13:20 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 20 Sep 2023 08:33:57 +0000 (10:33 +0200)
commitd1a1be20af78257d1920a80a0b234c749833716a
treea9b451f6530358bb30526c1127b1dc2a50e563a9
parent61bdbecb27911e5bb5bc6eec261efc08e407386e
ioctl: pass NSID in Get/Set Features commands that use it

Several features are configured on a per-namespace basis
by setting the NSID in the Set Features and Get Features commands.
But the corresponding nvme_{g,s}et_features_*() functions
aren't passing the NSID in the commands.
For the functions missing a NSID parameter, define new variants
with the NSID argument added and mark the old functions as deprecated.

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