[PATCH] nvme-core: check id->mc before setting NVME_NS_METADATA_SUPPORTED
Keith Busch
kbusch at kernel.org
Tue Jun 27 08:30:44 PDT 2023
On Sat, Jun 24, 2023 at 12:35:02PM +0200, Irvin Cote wrote:
> The NVM Command set Identify Namespace Data Structure defines
> the metadata capabilities field (mc) that determines support for
> metadata. Check for the value of this field before enabling the
> NVME_NS_METADATA_SUPPORTED in the nvme_ns data structure.
The MC field is primarily for use when sending a format command to know
what are valid possibilities. If the reported MS and FLBAS are out of
sync with metadata capabilities, then the controller is broken.
More information about the Linux-nvme
mailing list