On 9/9/2019 5:49 AM, Martin K. Petersen wrote:
Keith,
At least for nvme, type 0 means you have meta data but not for
protection information,
Yeah, NVMe does not support DIX Type 0.
so remapping the place the where reference tag exists for other PI
types corrupts the metadata.
But the device shouldn't have an integrity profile in that case (see
previous mail about why keying off of the protection_type is a problem).
I see. Ok I'll not handle NVMe type 0 in this patchset.
There is no kernel implementation for that so I don't see a good reason
doing so after Martin's proposal.