]> www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: don't set SAVE bit on unsaveable features
authorCaleb Sander <csander@purestorage.com>
Thu, 14 Sep 2023 20:23:39 +0000 (14:23 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 20 Sep 2023 08:33:57 +0000 (10:33 +0200)
commit0cc2caec87632a98d2bbbe79bbbcbf2c082fd8bf
tree6542d58f8f5ba75c118729f72a31aa7110f7439a
parent019117eff399e55bdaf6518de9f4a41c2b81fe6d
ioctl: don't set SAVE bit on unsaveable features

According to the NVMe spec, the Host Behavior
and Write Protection features are not saveable.
Setting the SAVE bit may cause the Set Features command to be rejected,
so don't set it for these features.

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